-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Currently responses are wrapped in a value envelope
"responses": {
"200": {
"description": "List of Foo",
"schema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Foo"
}
}
}
}
}
}However I'm consuming an OData endpoint that for some reason wraps it in d.results.
So it would be nice if I could define this in the options and get this generated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
{ "swagger": "2.0", // ...omitted "paths": { "/FooSet": { "get": { "operationId": "getFooSet", "responses": { "200": { "description": "List of Foo", "schema": { "type": "object", "properties": { "d": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/definitions/Foo" } } } } } } } } } } } }