Validation with swagger annotations in java

31 views
Skip to first unread message

Frizoo

unread,
Apr 21, 2017, 8:45:00 PM4/21/17
to Swagger
 I have a question about swagger and java : I am quiet new with java and I am building a rest api in java with Jersey + spring, I wanted to do some validation on my models (input data) how could I do that ?
is there a way to do it with the swagger annotation @ApiModelProperty ? Or Do I need to use a separate component like the Bean validation ? 

Thanks 

tony tam

unread,
Apr 21, 2017, 8:54:36 PM4/21/17
to Swagger
Hi, you can see a similar question being answered here:


There is a project from the Atlassian folks here:


That may do just what you're after.
Reply all
Reply to author
Forward
0 new messages