Enable deriving JsonSchema for unit/newtype/tuple structs
This commit is contained in:
parent
07f4f68a02
commit
3f5f7cf0a3
6 changed files with 107 additions and 18 deletions
15
schemars/tests/expected/struct-tuple.json
Normal file
15
schemars/tests/expected/struct-tuple.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Tuple",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue