This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 585
Update example to use constructor and not setAppHandler #181
Comments
+1 Looking at the swagger code, this is what's on the latest commit (https://github.com/swagger-api/swagger-node-express/blob/e9dec80b9e1fa793b09679dc2505569290436be0/lib/swagger.js#L33-L62):
So if I'm reading this correctly, there's currently no way to set the Application Handler in the constructor. It still has to be done via setAppHandler, so there's no way to avoid the warning right now. Cheers. |
+1 |
plumpNation
pushed a commit
to FronterAS/swagger-node-express
that referenced
this issue
Feb 2, 2015
fehguy
added a commit
that referenced
this issue
Feb 2, 2015
Issue #181 README was showing deprecated example
This is addressed in #209 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The current docs suggest doing
swagger.setAppHandler(app);
which will output a warning ofsetAppHandler is deprecated! Pass it to the constructor instead.
.The docs should use a constructor example.
Thanks!
The text was updated successfully, but these errors were encountered: