Support JSON Schema draft 2020-12 and use it by default (#294)
This commit is contained in:
parent
95475ad1b4
commit
3aa0e7fa3c
88 changed files with 369 additions and 210 deletions
|
@ -422,7 +422,7 @@ fn expr_for_tuple_struct(fields: &[Field]) -> TokenStream {
|
|||
quote! {
|
||||
schemars::json_schema!({
|
||||
"type": "array",
|
||||
"items": [#((#fields)),*],
|
||||
"prefixItems": [#((#fields)),*],
|
||||
"minItems": #len,
|
||||
"maxItems": #len,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue