Re-using model with different required properties

11 views
Skip to first unread message

Rajeev Sharma

unread,
Jun 20, 2018, 4:56:07 AM6/20/18
to Swagger
Hi Folks,

I have model named "User.java" which is getting used by multiple rest methods like POST and PUT,and in POST method i need field "id" as a required and in PUT method i need same field "id" as optional. Kindly suggest me way for solving my problem

Application : Spring MVC + Rest Controller

Thanks,
Rajeev
Reply all
Reply to author
Forward
0 new messages