Merge branch 'master' into validate
This commit is contained in:
commit
b68132f17d
31 changed files with 440 additions and 143 deletions
|
@ -125,11 +125,11 @@ impl ValidationAttrs {
|
|||
// `schema_object` - the SchemaObject for the struct that contains this field.
|
||||
let mut statements = Vec::new();
|
||||
|
||||
if self.required {
|
||||
statements.push(quote! {
|
||||
schema_object.object().required.insert(#field_name.to_owned());
|
||||
});
|
||||
}
|
||||
// if self.required {
|
||||
// statements.push(quote! {
|
||||
// schema_object.object().required.insert(#field_name.to_owned());
|
||||
// });
|
||||
// }
|
||||
|
||||
let mut array_validation = Vec::new();
|
||||
let mut number_validation = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue