From aa1f2ccb23a6543c973380455b8284424a7b0d7f Mon Sep 17 00:00:00 2001 From: NedapLivestockManagement Date: Thu, 27 Jun 2024 10:29:16 +0200 Subject: [PATCH 1/2] #477 Sorting command with multiple sorting sites --- resources/icarAnimalSortingCommandResource.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/icarAnimalSortingCommandResource.json b/resources/icarAnimalSortingCommandResource.json index df762de..4728787 100644 --- a/resources/icarAnimalSortingCommandResource.json +++ b/resources/icarAnimalSortingCommandResource.json @@ -16,9 +16,12 @@ "$ref": "../types/icarAnimalIdentifierType.json", "description": "Unique animal scheme and identifier combination." }, - "site": { - "type": "string", - "description": "Unique identifier in the system for this site." + "sites": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array with unique site identifiers where this animal can be sorted to." }, "validFrom": { "$ref": "../types/icarDateTimeType.json", From 9b0e3468350c308bf9ba8144f4daa38d815bc54e Mon Sep 17 00:00:00 2001 From: Andrew Cooke <45248509+cookeac@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:44:03 +1200 Subject: [PATCH 2/2] Replace "site" with "sites" in required fields. --- resources/icarAnimalSortingCommandResource.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/icarAnimalSortingCommandResource.json b/resources/icarAnimalSortingCommandResource.json index 4728787..1376211 100644 --- a/resources/icarAnimalSortingCommandResource.json +++ b/resources/icarAnimalSortingCommandResource.json @@ -8,7 +8,7 @@ "type": "object", "required": [ "animal", - "site", + "sites", "validFrom" ], "properties": {