Skip to content
Open
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
37 changes: 29 additions & 8 deletions json-schema/web_assets.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema#",
"$id": "https://developer.joomla.org/schemas/json-schema/web_assets.json",

"definitions": {
"assets": {
Expand All @@ -15,13 +16,6 @@
"type": "string",
"enum": ["style", "script", "preset"]
},
"dependencies": {
"description": "A list of the item dependencies",
"type": "array",
"contains": {
"type": "string"
}
},
"uri": {
"description": "File uri/path string, full or relative to 'media/' folder, eg: com_foo/bar.js",
"type": "string"
Expand Down Expand Up @@ -62,6 +56,33 @@
"importmapScope": {
"description": "An optional scope path, for the asset in importmap",
"type": "string"
},
"dependencies": {
"description": "A list of the item dependencies",
"type": "array",
"contains": {
"type": "string"
}
},
"crossDependencies": {
"description": "A collection of the item cross-dependencies",
"type": "object",
"properties": {
"style": {
"description": "A list of the item dependencies (style)",
"type": "array",
"contains": {
"type": "string"
}
},
"script": {
"description": "A list of the item dependencies (script)",
"type": "array",
"contains": {
"type": "string"
}
}
}
}
},

Expand Down