Skip to content

Commit d8fcc38

Browse files
committed
the rule states object schema
maps vehicle_state to vehicle_event[]
1 parent 3c56a5f commit d8fcc38

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

schema/templates/policy/policy.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,21 @@
104104
},
105105
"states": {
106106
"$id": "#/definitions/rule/properties/states",
107-
"type": "object"
107+
"type": "object",
108+
"description": "Vehicle state to which this rule applies. Optionally provide a list of specific vehicle events as a subset of a given state for the rule to apply to. An empty list or null/absent defaults to \"all\" for the state.",
109+
"propertyNames": {
110+
"$id": "#/definitions/rule/properties/states/propertyNames",
111+
"$ref": "#/definitions/vehicle_state"
112+
},
113+
"properties": {
114+
},
115+
"additionalProperties": {
116+
"type": "array",
117+
"uniqueItems": true,
118+
"items": {
119+
"$ref": "#/definitions/vehicle_event"
120+
}
121+
}
108122
},
109123
"rule_units": {
110124
"$id": "#/definitions/rule/properties/rule_units",

0 commit comments

Comments
 (0)