Following Vapor's Validation API, I'm not really sure what is the right way to validate arguments in Graffiti.
I've made the arguments struct conform to Validatable but since I cannot call validate before it's being decode, I'm always getting 'field is required' error.
Following Vapor's Validation API, I'm not really sure what is the right way to validate arguments in Graffiti.
I've made the arguments struct conform to
Validatablebut since I cannot call validate before it's being decode, I'm always getting 'field is required' error.