...
 
Commits (2)
# Short JSON Schema
Short JSON Schema is an abbreviated syntax for a subset of [JSON Schema][jsonschema].
JSON Schema is a powerful language for constraining the format of JSON
structures, but its standard, JSON-based syntax is very verbose.
For to define a schema for this JSON format:
```json
{
"numberProperty": 123,
"stringProperty": "abc"
}
```
In JSON Schema:
```json
{
"type": "object",
"properties": {
"numberProperty": {
"type": "number"
},
"stringProperty": {
"type": "string"
}
},
"required": [
"numberProperty",
"stringProperty"
],
"additionalProperties": false
}
```
In Short JSON Schema, this becomes:
```
{
numberProperty:#,
stringProperty:$
}
```
[jsonschema]: http://json-schema.org/
## Examples
An object with a single, mandatory string property:
......