swagger-api/swagger-codegen

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

开放

#2,549 创建于 2016年4月11日

 (36 条评论) (0 个反应) (0 位负责人)HTML (5,474 个派生)batch import
Client: JavaEnhancement: Featurehelp wanted

仓库指标

星标
 (12,701 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南