摘要 |
A schema language is employed to define and validate data encoded in JavaScript Object Notation (JSON). The schema language makes consistent use of name-value pairs, a cornerstone of JSON, enabling a schema to be read and authored easily. More particularly, objects are composed of properties, and properties are composed of an array of name-value pairs, where the name is a string and the value can be almost any type, including another pair. Further, the schema language supports name referencing, alternative schemas, and forbidden type, and a root object to facilitate schema composition, among other things. |