...
Code Block | ||
---|---|---|
| ||
{ "type": "object", "properties": { "country": { "type": "string", "enum": [ "United States", "Canada" ] }, "ifmeasurementSystem": { "type": "string" } }, "propertiesif": { "properties": { "country": { "const": "United States" } }, "required": [ "country"] ] }, "then": { "properties": { "measurementSystem": { "const": "Imperial" } } }, "else": { "properties": { "measurementSystem": { "const": "Metric" } } } } } |
On an object where this schema is bound, the derived annotation value for measurementSystem
of an object would depend on the actual annotation value of country
.
...