Source code
Revision control
Copy as Markdown
Other Tools
{
"title": "Basic",
"type": "object",
"required": [
"bare_field",
"box_same",
"display_from_str",
"same",
"vec_same"
],
"properties": {
"bare_field": {
"description": "Basic field, no attribute",
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"box_same": {
"description": "This checks that Same still works when wrapped in a box.",
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"display_from_str": {
"description": "Field that directly uses DisplayFromStr",
"type": "string"
},
"same": {
"description": "Same does not implement JsonSchema directly so this checks that the correct schemars attribute was injected.",
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"vec_same": {
"description": "Same thing, but with a Vec this time.",
"type": "array",
"items": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
}
}