Add example for handling custom serialization

This commit is contained in:
Graham Esau 2019-12-28 16:45:00 +00:00
parent 79155cddf5
commit aec4824425
8 changed files with 170 additions and 2 deletions

View file

@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MyStruct",
"type": "object",
"properties": {
"bool_as_string": {
"default": "false",
"type": "string"
},
"bool_normal": {
"default": false,
"type": "boolean"
},
"int_as_string": {
"default": "8",
"type": "string"
},
"int_normal": {
"default": 8,
"type": "integer",
"format": "int32"
}
}
}