schemars/schemars/tests/expected/default.json
2024-05-13 18:33:48 +01:00

49 lines
No EOL
942 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MyStruct",
"type": "object",
"properties": {
"my_bool": {
"type": "boolean",
"default": false
},
"my_int": {
"type": "integer",
"format": "int32",
"default": 0
},
"my_struct2": {
"allOf": [
{
"$ref": "#/definitions/MyStruct2"
}
],
"default": "i:0 b:false"
},
"my_struct2_default_skipped": {
"$ref": "#/definitions/MyStruct2"
},
"not_serialize": {
"$ref": "#/definitions/NotSerialize"
}
},
"definitions": {
"MyStruct2": {
"type": "object",
"properties": {
"my_bool": {
"type": "boolean",
"default": true
},
"my_int": {
"type": "integer",
"format": "int32",
"default": 6
}
}
},
"NotSerialize": {
"type": "null"
}
}
}