swagger-api/swagger-codegen

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

Open

#2,549 建立於 2016年4月11日

在 GitHub 查看
 (36 留言) (0 反應) (0 負責人)HTML (5,474 fork)batch import
Client: JavaEnhancement: Featurehelp wanted

倉庫指標

Star
 (12,701 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南