schemars/schemars/tests/expected/remote_derive_generic.json
Graham Esau 5ddd44a9e5 Regenerate all test expected outputs
Properties are now in a different order due to the preserve_order feature flag
2020-09-24 20:47:46 +01:00

59 lines
No EOL
1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MyStruct_for_int32",
"type": "object",
"required": [
"byte_or_bool2",
"fake_map",
"s",
"unit_or_t2"
],
"properties": {
"byte_or_bool2": {
"$ref": "#/definitions/Or_for_uint8_and_Boolean"
},
"unit_or_t2": {
"$ref": "#/definitions/Or_for_Null_and_int32"
},
"s": {
"$ref": "#/definitions/Str"
},
"fake_map": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"definitions": {
"Or_for_uint8_and_Boolean": {
"anyOf": [
{
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
{
"type": "boolean"
}
]
},
"Or_for_Null_and_int32": {
"anyOf": [
{
"type": "null"
},
{
"type": "integer",
"format": "int32"
}
]
},
"Str": {
"type": "string"
}
}
}