@@ -91,6 +91,7 @@ def app
9191 expect ( subject [ 'paths' ] [ '/response_headers' ] [ 'get' ] ) . to eql (
9292 'description' => 'This returns headers' ,
9393 'produces' => [ 'application/json' ] ,
94+ 'parameters' => [ ] ,
9495 'responses' => {
9596 '200' => { 'description' => 'This returns headers' , 'schema' => { '$ref' => '#/definitions/UseResponse' } , 'headers' => header_200 } ,
9697 '404' => { 'description' => 'NotFound' , 'schema' => { '$ref' => '#/definitions/ApiError' } , 'examples' => examples_404 , 'headers' => header_404 }
@@ -121,6 +122,7 @@ def app
121122 expect ( subject [ 'paths' ] [ '/no_content_response_headers' ] [ 'delete' ] ) . to eql (
122123 'description' => 'A 204 can have headers too' ,
123124 'produces' => [ 'application/json' ] ,
125+ 'parameters' => [ ] ,
124126 'responses' => {
125127 '204' => { 'description' => 'No content' , 'headers' => header_204 } ,
126128 '400' => { 'description' => 'Bad Request' , 'headers' => header_400 , 'schema' => { '$ref' => '#/definitions/ApiError' } , 'examples' => examples_400 }
@@ -151,6 +153,7 @@ def app
151153 expect ( subject [ 'paths' ] [ '/file_response_headers' ] [ 'get' ] ) . to eql (
152154 'description' => 'A file can have headers too' ,
153155 'produces' => [ 'application/json' ] ,
156+ 'parameters' => [ ] ,
154157 'responses' => {
155158 '200' => { 'description' => 'A file can have headers too' , 'headers' => header_200 , 'schema' => { 'type' => 'file' } } ,
156159 '404' => { 'description' => 'NotFound' , 'headers' => header_404 , 'schema' => { '$ref' => '#/definitions/ApiError' } , 'examples' => examples_404 }
@@ -181,6 +184,7 @@ def app
181184 expect ( subject [ 'paths' ] [ '/response_failure_headers' ] [ 'get' ] ) . to eql (
182185 'description' => 'This syntax also returns headers' ,
183186 'produces' => [ 'application/json' ] ,
187+ 'parameters' => [ ] ,
184188 'responses' => {
185189 '200' => { 'description' => 'This syntax also returns headers' , 'schema' => { '$ref' => '#/definitions/UseResponse' } , 'headers' => header_200 } ,
186190 '404' => { 'description' => 'NotFound' , 'schema' => { '$ref' => '#/definitions/ApiError' } , 'headers' => header_404 } ,
@@ -202,6 +206,7 @@ def app
202206 expect ( subject [ 'paths' ] [ '/response_no_headers' ] [ 'get' ] ) . to eql (
203207 'description' => 'This does not return headers' ,
204208 'produces' => [ 'application/json' ] ,
209+ 'parameters' => [ ] ,
205210 'responses' => {
206211 '200' => { 'description' => 'This does not return headers' , 'schema' => { '$ref' => '#/definitions/UseResponse' } } ,
207212 '404' => { 'description' => 'NotFound' , 'schema' => { '$ref' => '#/definitions/ApiError' } }
0 commit comments