swagger-api/swagger-codegen

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

Aberta

#2.549 aberto em 11 de abr. de 2016

 (36 comentários) (0 reação) (0 responsável)HTML (5.474 forks)batch import
Client: JavaEnhancement: Featurehelp wanted

Métricas do repositório

Stars
 (12.701 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador