Add some doc comments

This commit is contained in:
Graham Esau 2021-04-24 11:46:07 +01:00
parent 7914593d89
commit d99a96fc8a
4 changed files with 22 additions and 11 deletions

View file

@ -22,7 +22,6 @@ pub struct ValidationAttrs {
impl ValidationAttrs {
pub fn new(attrs: &[syn::Attribute], errors: &Ctxt) -> Self {
// TODO allow setting "validate" attributes through #[schemars(...)]
ValidationAttrs::default()
.populate(attrs, "schemars", false, errors)
.populate(attrs, "validate", true, errors)