swagger-api/swagger-codegen

Client-generation: Allow data validation on the client side (using minLength/maxLength)

Open

#2,549 opened on Apr 11, 2016

View on GitHub
 (36 comments) (0 reactions) (0 assignees)HTML (12,701 stars) (5,474 forks)batch import
Client: JavaEnhancement: Featurehelp wanted

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.

Contributor guide

Client-generation: Allow data validation on the client side (using minLength/maxLength) · swagger-api/swagger-codegen#2549 | Good First Issue