schemars/schemars/tests/expected/examples.json

39 lines
No EOL
545 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Struct",
"type": "object",
"properties": {
"bar": {
"type": "boolean"
},
"baz": {
"type": [
"string",
"null"
],
"examples": [
null
]
},
"foo": {
"type": "integer",
"format": "int32",
"examples": [
8,
null
]
}
},
"examples": [
{
"bar": false,
"baz": null,
"foo": 0
},
null
],
"required": [
"foo",
"bar"
]
}