Thanks for you quick reply :)
Assume user model schema is like below :
{
"firstName": "string",
"lastName": "string",
"ids": [
"string"
],
"birthDetails": {
"place": "string",
"date": "string"
},
"address": {
"homeAAddress": {
"postalCode": "string",
"place": "string"
},
"officeAAddress": {
"postalCode": "string",
"place": "string"
}
}
}
birthDetails and homeAAddress fields are not required in request. How i can avoid or hide them in model schema
Note : not use @ApiModel annotation
So that i would get :
{
"firstName": "string",
"lastName": "string",
"ids": [
"string"
],
"address": {
"homeAAddress": {
"postalCode": "string",
"place": "string"
}
}
}
as my model schema while using tryOut option
On Saturday, October 24, 2015 at 9:08:13 AM UTC+4, tony tam wrote:
Can you please give a simple example?
Hi Tony, i have a requirement where i dont want to use all the parameters of nested object. How can i modify the body schema so that it would contains only necessary fields.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.