From eaa20bd488b84eb2bd033140fd986e9b40c806f1 Mon Sep 17 00:00:00 2001 From: STAC CI Date: Wed, 17 Jul 2024 21:14:46 +0000 Subject: [PATCH] Publish JSON Schemas [ci skip] --- .../json-schema/collection.json | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/dev/collection-spec/json-schema/collection.json b/dev/collection-spec/json-schema/collection.json index ffd24c08..0320e442 100644 --- a/dev/collection-spec/json-schema/collection.json +++ b/dev/collection-spec/json-schema/collection.json @@ -83,12 +83,12 @@ "type": "array", "oneOf": [ { - "minItems":4, - "maxItems":4 + "minItems": 4, + "maxItems": 4 }, { - "minItems":6, - "maxItems":6 + "minItems": 6, + "maxItems": 6 } ], "items": { @@ -131,6 +131,42 @@ "assets": { "$ref": "../../item-spec/json-schema/item.json#/definitions/assets" }, + "item_assets": { + "allOf": [ + { + "type": "object", + "minProperties": 2, + "properties": { + "href": { + "title": "Disallow href", + "not": {} + }, + "title": { + "title": "Asset title", + "type": "string" + }, + "description": { + "title": "Asset description", + "type": "string" + }, + "type": { + "title": "Asset type", + "type": "string" + }, + "roles": { + "title": "Asset roles", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + { + "$ref": "../../item-spec/json-schema/common.json" + } + ] + }, "links": { "$ref": "../../item-spec/json-schema/item.json#/definitions/links" },