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
Currently responses are wrapped in a
valueenvelopeHowever 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
{ "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" } } } } } } } } } } } }