Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR to develop branch for schemata definitions #196

Merged
merged 4 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions collections/icarSchemeTypeCollection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "Represents a collection of schemata/types. Based on icarResourceCollection to provide paging etc.",

"allOf": [{
"$ref": "../collections/icarResourceCollection.json"
},
{
"type": "object",

"properties": {
"member": {
"type": "array",
"items": {
"$ref": "../resources/icarSchemeTypeResource.json"
},
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case scheme values."
}
}
}
]
}
21 changes: 21 additions & 0 deletions collections/icarSchemeValueCollection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"description": "Represents a collection of scheme type values. Based on icarResourceCollection to provide paging etc.",

"allOf": [{
"$ref": "../collections/icarResourceCollection.json"
},
{
"type": "object",

"properties": {
"member": {
"type": "array",
"items": {
"$ref": "../resources/icarSchemeValueResource.json"
},
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case schemata or scheme types."
}
}
}
]
}
12 changes: 12 additions & 0 deletions resources/icarSchemeTypeResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"description": "Schema type/scheme name types supported schemata under location",

"type": "object",

"properties": {
"name": {
"type": "string",
"description": "Schema type/scheme name."
}
}
}
16 changes: 16 additions & 0 deletions resources/icarSchemeValueResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"description": "Schema id values for specific sheme type",

"type": "object",

"properties": {
"id": {
"type": "string",
"description": "Id/identifier for scheme value."
},
"name": {
"type": "string",
"description": "Friendly name for scheme value."
}
}
}
Loading