-
Notifications
You must be signed in to change notification settings - Fork 8
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(breaking): dropping support for callback handling #289
Conversation
@@ -71,6 +71,10 @@ import OpenAPIParser from '@readme/openapi-parser'; | |||
|
|||
## Differences from `@apidevtools/swagger-parser` | |||
|
|||
The methods on `@readme/openapi-parser`, unlike `@apidevtools/swagger-parser`, do not support callbacks. |
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.
@@ -26,7 +26,7 @@ function validateSpec(api) { | |||
const path = api.paths[pathName]; | |||
const pathId = `/paths${pathName}`; | |||
|
|||
if (path && pathName.indexOf('/') === 0) { | |||
if (path && pathName.startsWith('/')) { |
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.
more like es-boomer syntax amirite
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.
doesn't have to happen in this PR obviously but if we plan on maintaining this long term i think we should probably just do a proper conversion to TS?
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.
yea working on it now 🙃
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.
wild how much bloat callbacks support added to this file. woof
🧰 Changes
In order to update this library to support the newest version of
json-schema-ref-parser
we're dropping support for callbacks.