Closed leodido closed 6 years ago
Hey @samechelon, use the custom validator attrname to validate that the attribute names respect the rules.
attrname
So you have to populate with validate:attrname the structs that require it.
validate:attrname
Pay attention that for non scalar fields you have to use special keywords provided by the go-validator library (eg., dive).
dive
When you've done with this first sub-task, please provide the tests. Note that tests for resource structs already exists, so augment them.
FYI @leogr
Hey @samechelon, use the custom validator
attrname
to validate that the attribute names respect the rules.So you have to populate with
validate:attrname
the structs that require it.Pay attention that for non scalar fields you have to use special keywords provided by the go-validator library (eg.,
dive
).When you've done with this first sub-task, please provide the tests. Note that tests for resource structs already exists, so augment them.
FYI @leogr