-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
- Description: Usage of
allOfinsideitemsonly shows the first element - Version: 2.1.4
- Example:
I'm trying to add an id field to user's definition. A part of my swagger.json file:
"docs": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/definitions/User"
},
{
"properties": {
"id": {
"type": "string"
}
}
}
]
}
}The example value showed in the ui is the following:
{
"docs": [
{
"email": "string",
"createdAt": "2016-07-12T19:40:42.290Z",
"updatedAt": "2016-07-12T19:40:42.290Z"
}
],
"total": 0,
"limit": 0,
"offset": 0
}As you can see, the id field is not shown. Any idea ? I would highly appreciate any help.
Thank you.
buffe, sephbo, Leblantoine, jeff9finger, bubski and 3 more
Metadata
Metadata
Assignees
Labels
No labels