Skip to content

Commit

Permalink
Merge pull request #75 from one-data-model/sdf-md-update-for-optionality
Browse files Browse the repository at this point in the history
Update sdf.md for optionality using "required"
  • Loading branch information
mjkoster authored Oct 2, 2019
2 parents a0eadb9 + be360a9 commit 8f5a263
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 96 deletions.
55 changes: 32 additions & 23 deletions sdf-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,23 @@
},
"minitems": 1
},
"pointer-list": {
"type": "array",
"items": {
"type": "string"
}
},
"commonqualities": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"title": {
"$comment": {
"type": "string"
},
"id": {
"type": "number"
"title": {
"type": "string"
},
"name": {
"type": "string"
Expand All @@ -131,14 +137,14 @@
"additionalProperties": false
}
},
"include": {
"$ref": "#/definitions/pointer-ref-list"
"odmInclude": {
"$ref": "#/definitions/pointer-list"
},
"required": {
"$ref": "#/definitions/pointer-ref-list"
"odmRequired": {
"$ref": "#/definitions/pointer-list"
}
},
"required": ["id"]
"required": []
},

"thingqualities": {
Expand Down Expand Up @@ -225,11 +231,14 @@
{
"type": "object",
"properties": {
"inputData": {
"$ref": "#/definitions/pointer-ref-list"
"odmInputData": {
"$ref": "#/definitions/pointer-list"
},
"odmRequiredInputData": {
"$ref": "#/definitions/pointer-list"
},
"outputData": {
"$ref": "#/definitions/pointer-ref-list"
"odmOutputData": {
"$ref": "#/definitions/pointer-list"
}
}
}
Expand All @@ -244,11 +253,8 @@
{
"type": "object",
"properties": {
"inputData": {
"$ref": "#/definitions/pointer-ref-list"
},
"outputData": {
"$ref": "#/definitions/pointer-ref-list"
"odmOutputData": {
"$ref": "#/definitions/pointer-list"
}
}
}
Expand Down Expand Up @@ -278,6 +284,12 @@
"observable": {
"type": "boolean"
},
"readable": {
"type": "boolean"
},
"writeable": {
"type": "boolean"
},
"nullable": {
"type": "boolean"
},
Expand All @@ -299,6 +311,9 @@
"jsonschema": {
"type": "object",
"properties": {
"$comment": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -418,12 +433,6 @@
},
"properties": {
"type": "object"
},
"readOnly": {
"type": "boolean"
},
"writeOnly": {
"type": "boolean"
}
}
}
Expand Down
Loading

0 comments on commit 8f5a263

Please sign in to comment.