diff --git a/resources/icarAttentionEventResource.json b/resources/icarAttentionEventResource.json index 477c32d..6ee55c7 100644 --- a/resources/icarAttentionEventResource.json +++ b/resources/icarAttentionEventResource.json @@ -12,8 +12,10 @@ "properties": { "alertEndDateTime": { - "type": ["string", "null"], - "$ref": "../types/icarDateTimeType.json", + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarDateTimeType.json"} + ], "description": "RFC3339 date time that represents the end time of an alert (start time is the eventDateTime) if it has ended." }, "category": { @@ -47,4 +49,4 @@ } ] } - \ No newline at end of file + diff --git a/resources/icarProgenyDetailsResource.json b/resources/icarProgenyDetailsResource.json index 966f828..f8c439d 100644 --- a/resources/icarProgenyDetailsResource.json +++ b/resources/icarProgenyDetailsResource.json @@ -16,18 +16,20 @@ "properties": { "identifier": { "description": "Unique animal scheme and identifier combination.", - "type": ["object", "null"], - "allOf": [ - { - "$ref": "../types/icarAnimalIdentifierType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarAnimalIdentifierType.json"} ] }, "alternativeIdentifiers": { - "type": ["array","null"], - "items": { - "$ref": "../types/icarAnimalIdentifierType.json" - }, + "anyOf": [ + {"type": "null"}, + {"type": "array", + "items": { + "$ref": "../types/icarAnimalIdentifierType.json" + } + } + ], "description": "Alternative identifiers for the animal. Here, also temporary identifiers, e.g. transponders or animal numbers, can be listed." }, "specie": { @@ -39,7 +41,10 @@ "description": "Gender of the animal." }, "managementTag": { - "type": ["string", "null"], + "anyOf": [ + {"type": "null"}, + {"type": "string"} + ], "description": "The identifier used by the farmer in day to day operations. In many cases this could be the animal number." }, "name": { @@ -52,41 +57,33 @@ }, "taggingDate": { "description": "Progeny tagging date in RFC3339 UTC (see https://ijmacd.github.io/rfc3339-iso8601/ for format guidance).", - "type": ["string", "null"], - "allOf": [ - { - "$ref": "../types/icarDateTimeType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarDateTimeType.json"} ] }, "birthStatus": { "description": "Birth status of the progeny.", - "type": ["string", "null"], - "allOf": [ - { - "$ref": "../enums/icarParturitionBirthStatusType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../enums/icarParturitionBirthStatusType.json"} ] }, "birthSize": { "description": "Size of the progeny.", - "type": ["string", "null"], - "allOf": [ - { - "$ref": "../enums/icarParturitionBirthSizeType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../enums/icarParturitionBirthSizeType.json"} ] }, "birthWeight": { "description": "Weight of the progeny.", - "type": ["object", "null"], - "allOf": [ - { - "$ref": "../types/icarMassMeasureType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarMassMeasureType.json"} ] } } } ] -} \ No newline at end of file +} diff --git a/types/icarMetaDataType.json b/types/icarMetaDataType.json index 2be379a..da608b7 100644 --- a/types/icarMetaDataType.json +++ b/types/icarMetaDataType.json @@ -26,11 +26,9 @@ }, "created": { "description": "RFC3339 UTC date/time of creation (see https://ijmacd.github.io/rfc3339-iso8601/ for format guidance).", - "type": ["string", "null"], - "allOf": [ - { - "$ref": "../types/icarDateTimeType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarDateTimeType.json"} ] }, "creator": { @@ -39,21 +37,17 @@ }, "validFrom": { "description": "RFC3339 UTC start of period when the resource is valid (see https://ijmacd.github.io/rfc3339-iso8601/ for format guidance).", - "type": ["string", "null"], - "allOf": [ - { - "$ref": "../types/icarDateTimeType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarDateTimeType.json"} ] }, "validTo": { "description": "RFC3339 UTC end of the period when the resoure is valid (see https://ijmacd.github.io/rfc3339-iso8601/ for format guidance).", - "type": ["string", "null"], - "allOf": [ - { - "$ref": "../types/icarDateTimeType.json" - } + "anyOf": [ + {"type": "null"}, + {"$ref": "../types/icarDateTimeType.json"} ] } } -} \ No newline at end of file +}