From 244ab5d29251dda174ff2d4b64245668e8b29842 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 23 Nov 2021 10:44:39 +1300 Subject: [PATCH] feat: Fix strict ajv warnings See . --- extensions/linz/schema.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/extensions/linz/schema.json b/extensions/linz/schema.json index 41fc5319..ee5cfd8a 100644 --- a/extensions/linz/schema.json +++ b/extensions/linz/schema.json @@ -22,6 +22,7 @@ { "$comment": "Type-specific schemas", "if": { + "type": "object", "properties": { "type": { "const": "Collection" @@ -85,6 +86,7 @@ }, "else": { "if": { + "type": "object", "properties": { "type": { "const": "Feature" @@ -954,8 +956,10 @@ "allOf": [ { "contains": { + "type": "object", "properties": { "roles": { + "type": "array", "contains": { "const": "manager" } @@ -965,8 +969,10 @@ }, { "contains": { + "type": "object", "properties": { "roles": { + "type": "array", "contains": { "const": "custodian" } @@ -1015,9 +1021,12 @@ "providers": { "allOf": [ { + "type": "array", "contains": { + "type": "object", "properties": { "roles": { + "type": "array", "contains": { "const": "licensor" } @@ -1026,9 +1035,12 @@ } }, { + "type": "array", "contains": { + "type": "object", "properties": { "roles": { + "type": "array", "contains": { "const": "producer" }