swagger-api/swagger-codegen
Voir sur GitHubClient-generation: Allow data validation on the client side (using minLength/maxLength)
Open
#2 549 ouverte le 11 avr. 2016
Client: JavaEnhancement: Featurehelp wanted
Métriques du dépôt
- Stars
- (12 701 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
Currently the generated Java-clients perform required-validation automatically. Do you think this makes sense for minLength/maxLength as well, to reject the request on the client side before sending to the server?
For Java the JSR-303 Bean Validation API could be used for this automatically. For other languages maybe a JSON-schema validation could be used.