Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions schema/rockcraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -13720,6 +13720,18 @@
"echo [ Hello ]"
],
"title": "Entrypoint-Command"
},
"extensions": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of extensions to apply to the rock.",
"examples": [
[
"twelve-factor"
]
]
}
},
"required": [
Expand Down
8 changes: 8 additions & 0 deletions tools/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ def generate_project_schema() -> str:
# combine both schemas
project_schema = {**initial_schema, **project_schema}

# add extensions field (DX only)
project_schema["properties"]["extensions"] = {
"type": "array",
"items": {"type": "string"},
"description": "List of extensions to apply to the rock.",
"examples": [["twelve-factor"]],
}

# tweak the platforms definition on the Project (each value can be empty)
project_schema["properties"]["platforms"]["additionalProperties"] = {
"oneOf": [{"type": "null"}, {"$ref": "#/$defs/Platform"}]
Expand Down
Loading