Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
JSON
Short JSON Schema
Commits
79a18b5a
Commit
79a18b5a
authored
Oct 18, 2019
by
Paul Warren
Browse files
Documentation re-ordering.
parent
a1094682
Pipeline
#114
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
79a18b5a
...
...
@@ -82,23 +82,6 @@ Short JSON Schema supports a subset of JSON Schema functionality. The
`shortjsonschema`
Python module converts Short JSON Schema syntax into standard
JSON Schema.
## Defaults
In Short JSON Schema, properties are required by default, and additional
properties are disallowed. Properties can be made optional by adding a
`?`
modifier, and additional properties can be allowed by adding
`...`
in the
property list.
```
{
myString?:$,
...
}
```
All properties allowed, but if present,
`myString`
must be a string.
## Examples
...
...
@@ -148,4 +131,20 @@ Arrays:
}
```
## Defaults
In Short JSON Schema, properties are required by default, and additional
properties are disallowed. Properties can be made optional by adding a
`?`
modifier, and additional properties can be allowed by adding
`...`
in the
property list.
```
{
myString?:$,
...
}
```
All properties allowed, but if present,
`myString`
must be a string.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment