Skip to content

Commit

Permalink
Issue #7 - adding derivation to json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aywaldron authored and MJJoyce committed Sep 4, 2019
1 parent a7a7e1e commit a5a48b5
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions ait/core/data/tlm_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,59 @@
}
}
}
},
"derivations": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"oneOf" : [{
"required" : ["name", "equation"]
}, {
"required" : ["include"]
}],
"properties": {
"include": {
"type": "string"
},
"derivation": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"type": {
"type": "string"
},
"units": {
"type": "string"
},
"desc": {
"type": "string"
},
"aliases": {
"type": "object"
},
"enum": {
"type": "object",
"description": "TODO: Does not check valid enumeration"
},
"value": {
"type": "integer",
"description": "Expected value for this field."
},
"when": {
"type": "string",
"description": "An expression defining when a !Derivation's value is valid."
},
"equation": {
"type": "string"
}
}
}
}
}
}
Expand Down

0 comments on commit a5a48b5

Please sign in to comment.