jsonschema-rs/benches/small_schema.json

41 lines
1.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": [
{
"type": "number",
"exclusiveMaximum": 10
},
{
"type": "string",
"enum": ["hello", "world"]
},
{
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": [
{"type": "number"},
{"type": "string"},
{"type": "boolean"}
]
},
{
"type": "object",
"required": ["a", "b"],
"minProperties": 3,
"properties": {
"a": {"type": ["null", "string"]},
"b": {"type": ["null", "string"]},
"c": {"type": ["null", "string"], "default": "abc"}
},
"additionalProperties": {"type": "string"}
},
{"not": {"type": ["null"]}},
{"oneOf": [
{"type": "number", "multipleOf": 3},
{"type": "number", "multipleOf": 5}
]}
]
}