This repository has been archived by the owner on Jan 25, 2020. It is now read-only.
Generated handler sets a 501
status code and generated tests check for 200
status code
#66
Milestone
The default status code set by the generated handler is
501
- Not Implemented.https://github.com/krakenjs/generator-swaggerize/blob/master/app/templates/_handler_express.js#L14
This status code makes sense because, it is up to the actual API implementor to provide the functionality here.
However the tests generated by the generator checks for
200
status code and this makes thenpm test
on the generated application to fail by default.I think it would be useful if we could change the
501
status code to200
(and Add a comment on complete the implementation details) so that the tests will not fail by default.The text was updated successfully, but these errors were encountered: