Skip to content

Commit

Permalink
Merge pull request #132 from cookeac/master
Browse files Browse the repository at this point in the history
Corrected typo, added icarSetPurposeType enum.
  • Loading branch information
erwinspeybroeck authored Jul 27, 2020
2 parents 24a1925 + 00789dd commit db0e4cf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
16 changes: 16 additions & 0 deletions enums/icarSetPurposeType.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "Describes the purpose of a set of animals.",

"type": "string",

"enum": [
"Enclosure",
"Feeding",
"Health",
"Lactation",
"Movement",
"Reproduction",
"Session",
"Other"
]
}
13 changes: 7 additions & 6 deletions resources/icarAnimalSetResource.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"description": "Core schema for representing animal sets",
"description": "Core schema for representing animal sets (often called groups or sessions).",

"allOf": [{
"allOf": [
{
"$ref": "../resources/icarResource.json"
},
{
Expand All @@ -19,11 +20,11 @@
},
"name": {
"type": "string",
"description": "Human readable name of the set.",
"description": "Human readable name of the set."
},
"type": {
"type": "string",
"description": "Type of the animal set."
"purpose": {
"$ref": "../enums/icarSetPurposeType.json",
"description": "Purpose of the animal set."
},
"member": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion url-schemes/exampleUrlScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@
"member": [{
"id": "6e47cd5c-2d42-4268-a665-bd17cd5fc222",
"name": "My Barn Group",
"type": "BARN",
"purpose": "Enclosure",
"member": [{
"scheme": "eu.animalId",
"id": "276000312312345"
Expand Down

0 comments on commit db0e4cf

Please sign in to comment.