diff --git a/json-schema/web_assets.json b/json-schema/web_assets.json index 544db80..0f4dbd6 100644 --- a/json-schema/web_assets.json +++ b/json-schema/web_assets.json @@ -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": { @@ -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" @@ -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" + } + } + } } },