From b2d625ae87bb1fac34db4faafc026a753dd42405 Mon Sep 17 00:00:00 2001 From: Jose Manuel Cantera Date: Wed, 7 Nov 2018 09:40:17 +0100 Subject: [PATCH] EntityInfo fixed --- schema/common.json | 45 ++++++++++++--------------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/schema/common.json b/schema/common.json index 14091d0..30a2ccd 100644 --- a/schema/common.json +++ b/schema/common.json @@ -63,41 +63,20 @@ } }, "EntityInfo": { - "anyOf": [ - { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uri" }, - { - "type": "object", - "required": [ - "idPattern" - ], - "properties": { - "idPattern": { - "type": "string" - } - } + "type": { + "type": "string", + "minLength": 1 }, - { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string" - } - } + "idPattern": { + "type": "string", + "format": "regex" } - ] + } } - } } -- GitLab