diff --git a/ait/core/data/tlm_schema.json b/ait/core/data/tlm_schema.json index 5cccf2b6..765b747e 100644 --- a/ait/core/data/tlm_schema.json +++ b/ait/core/data/tlm_schema.json @@ -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" + } + } + } } } }