-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add Callbacks support #691
Add Callbacks support #691
Conversation
Hi @lucasassisrosa, thanks for the contribution. Can you address the linter/unused import error? Thanks! |
Visit the preview URL for this PR (updated for commit 980324d): https://docusaurus-openapi-36b86--pr691-y9v5jecd.web.app (expires Thu, 08 Feb 2024 16:11:31 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
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.
Hi @lucasassisrosa, everything looks solid so far! Please see my comments/questions.
packages/docusaurus-plugin-openapi-docs/src/markdown/createOperationHeader.ts
Outdated
Show resolved
Hide resolved
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
* add support to callbacks in openapi specs * set package manager in package json * implement operations as tabs within request panel * render callbacks below Request and Responses * remove unwanted files * rename create file * restore json settings
* Add Callbacks support (#691) * add support to callbacks in openapi specs * set package manager in package json * implement operations as tabs within request panel * render callbacks below Request and Responses * remove unwanted files * rename create file * restore json settings * convert OperationTabs to typescript * fix linter * fix warning on lint order
Description
OpenAPI specs callbacks in endpoints were being ignored on rendering. I noticed the types were included but no code was found for rendering the callbacks. So
callbacks
included in Petstore cannot be seen at https://docusaurus-openapi.tryingpan.dev/petstore/subscribe-to-the-store-eventsMotivation and Context
Be aligned with OpenAPI 3.0 Specs: https://swagger.io/docs/specification/callbacks/
How Has This Been Tested?
Go to petstore "Subscribe to the store events" - http://localhost:3000/petstore/subscribe-to-the-store-events
Types of changes
Checklist