-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add option to excluded deprecated PUT update
blueprint (default)
#73
Conversation
3264686
to
a6b3da8
Compare
Sails 1.0 includes `PUT` and `PATCH` routes to the `update` blueprint although `PUT` deprecated; default to excluding the `PUT` route. See - https://sailsjs.com/documentation/reference/blueprint-api/update#?notes - https://github.com/balderdashy/sails/blob/master/lib/hooks/blueprints/index.js#L401
a6b3da8
to
f186232
Compare
README.MD
Outdated
@@ -85,6 +85,9 @@ module.exports['swagger-generator'] = { | |||
'500': { description: 'Internal server error' } | |||
} | |||
}, | |||
options: { | |||
excludeDeprecatedPutBlueprintRoutes: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious, any reason adding this to options
what about just adding it directly to
export interface SwaggerGenerator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel it's a better ux to just add more options to SwaggerGenerator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, I added it this way and meant to ask you but forgot. I will change it as per your comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a minor comment: https://github.com/theoomoregbee/sails-hook-swagger-generator/pull/73/files#r436273501
🎉 This PR is included in version 3.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sails 1.0 includes
PUT
andPATCH
routes to theupdate
blueprint althoughPUT
deprecated; default to excluding thePUT
route.See