From acd0280ea9944d07c0ad019c2cf6234531db2f9e Mon Sep 17 00:00:00 2001 From: Graham Moore Date: Tue, 5 Apr 2022 10:49:14 +0200 Subject: [PATCH] removed discriminators --- collections/icarResourceCollection.json | 4 ---- resources/icarEventCoreResource.json | 4 ---- resources/icarResource.json | 4 ++++ types/icarIdentifierType.json | 4 ---- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/collections/icarResourceCollection.json b/collections/icarResourceCollection.json index cd5a3d5..e137a6d 100644 --- a/collections/icarResourceCollection.json +++ b/collections/icarResourceCollection.json @@ -3,10 +3,6 @@ "type": "object", - "discriminator": { - "propertyName": "memberType" - }, - "properties": { "view": { "type": "object", diff --git a/resources/icarEventCoreResource.json b/resources/icarEventCoreResource.json index 75a3d8d..010e4ea 100644 --- a/resources/icarEventCoreResource.json +++ b/resources/icarEventCoreResource.json @@ -1,10 +1,6 @@ { "description": "", - "discriminator": { - "propertyName": "eventType" - }, - "allOf": [ { "$ref": "../resources/icarResource.json" diff --git a/resources/icarResource.json b/resources/icarResource.json index 16dfc15..0decd45 100644 --- a/resources/icarResource.json +++ b/resources/icarResource.json @@ -7,6 +7,10 @@ "propertyName": "resourceType" }, + "required": [ + "resourceType" + ], + "properties": { "resourceType" : { "type": "string", diff --git a/types/icarIdentifierType.json b/types/icarIdentifierType.json index c9f5515..94d29f0 100644 --- a/types/icarIdentifierType.json +++ b/types/icarIdentifierType.json @@ -3,10 +3,6 @@ "type": "object", - "discriminator": { - "propertyName": "identifierType" - }, - "required": [ "id", "scheme"