Closed subeeshcbabu-zz closed 8 years ago
From Swagger spec: http://swagger.io/specification/
The default can be used a default response object for all HTTP codes that are not covered individually by the specification. The Responses Object MUST contain at least one response code, and it SHOULD be the response for a successful operation call.
The default can be used a default response object for all HTTP codes that are not covered individually by the specification.
The Responses Object MUST contain at least one response code, and it SHOULD be the response for a successful operation call.
Swagger API : https://github.com/subeeshcbabu/swaggerize-examples/blob/master/api/petstore-full.json
Error
npm test > petstore-full-express@0.1.0 test /swaggerize-examples/petstore-full-express > tape tests/*.js /swaggerize-examples/petstore-full-express/tests/test_users.js:33 t.strictEqual(res.statusCode, default, 'post /users default status.'); ^^^^^^^ SyntaxError: Unexpected token default
From Swagger spec: http://swagger.io/specification/
Swagger API : https://github.com/subeeshcbabu/swaggerize-examples/blob/master/api/petstore-full.json
Error