diff --git a/Symbology/web/vector.schema.json b/Symbology/web/vector.schema.json index fb02c6a1..42d4b875 100644 --- a/Symbology/web/vector.schema.json +++ b/Symbology/web/vector.schema.json @@ -1,51 +1,39 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "legend": { "type": "array", "items": { "type": "array", - "items": [ - {"type":"string"}, - {"type":"string"} - ] + "prefixItems": [ + {"type": "string"}, + {"type": "string"} + ], + "minItems": 2, + "maxItems": 2 } }, "layerStyles": { "type": "array", - "items": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "source": { - "type": "string" - }, - "source-layer": { - "type": "string" - }, - "layout": { - "type": "object" - }, - "paint": { - "type": "object" - } - }, - "required": [ - "id", - "type", - "source", - "source-layer", - "paint" - ] - } - ] + "items": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "type": { "type": "string" }, + "source": { "type": "string" }, + "source-layer": { "type": "string" }, + "layout": { "type": "object" }, + "paint": { "type": "object" } + }, + "required": [ + "id", + "type", + "source", + "source-layer", + "paint" + ] + } } }, "required": [