Ian H. Pittwood 60da55cd18 Schema validation
Adds JSON schema validation to Spyglass.

Change-Id: Ib29bbf9fa02cd6623c75db37a4c8d6f510b52831
2019-06-06 12:56:43 +00:00

11 lines
327 B
YAML

---
schema: InvalidSchema
foo: Not a number
bar: "Doesn't equal constant"
baz:
staticProperty:
- This array needs at least one number
property1: The propertyNames keyword is an alternative to patternProperties
pr()perty2: "All property names must match supplied conditions (in this"
"case, it's a regex)"