swagger-api/swagger-codegen

Provide support for JSR-303 annotations to validate the request body

オープン

#4,847 opened on 2017/02/24

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)HTML (5,474 件のフォーク)batch import
Enhancement: FeatureServer: Springhelp wanted

Repository metrics

Stars
 (12,701 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Description

Thank you for adding bean validation support in #4600. It would be great if you also could validate the Body parameter. Maybe you can apply the attached patch?

Swagger-codegen version

I'm using the swagger-codegen in version 2.2.2-SNAPSHOT.

Swagger declaration file content or url

see attached patch

Related issues

#4600 #2412

Suggest a Fix

see attached patch

Trigger_validation_process_for_request_body_by_using_Valid_annotation.patch.zip

コントリビューターガイド