We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.1.0 and 5.2.0
No response
16.15.0
Windows
11
Working with typescript export type SwaggerOptions from file index.d.ts is missing supportedSubmitMethods: Array<string>
export type SwaggerOptions
index.d.ts
supportedSubmitMethods: Array<string>
This field is useful to remove the "Try it out" Button entirely or only for specific methods See https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/ for more details
Thank you so much for all the effort you put in ❤️
While coding simply try to add the following uiConfig object to SwaggerOptions
uiConfig: { supportedSubmitMethods: [], docExpansion: "full", deepLinking: false, },
Typescript should recognize supportedSubmitMethods, if you add // @ts-ignore the field actually works
The text was updated successfully, but these errors were encountered:
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Sorry, something went wrong.
No way I can say no to the great Matteo ! It will be an honor 😃 Should be ready in a day or two
Added missing SwaggerOptions.uiConfig.supportedSubmitMethods. Issue: f…
f58d93b
…astify#626
Added missing SwaggerOptions.uiConfig.supportedSubmitMethods. Issue: #…
5590c91
…626 (#627)
No branches or pull requests
Prerequisites
Fastify version
5.1.0 and 5.2.0
Plugin version
No response
Node.js version
16.15.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
11
Description
Working with typescript
export type SwaggerOptions
from fileindex.d.ts
is missingsupportedSubmitMethods: Array<string>
This field is useful to remove the "Try it out" Button entirely or only for specific methods
See https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/ for more details
Thank you so much for all the effort you put in ❤️
Steps to Reproduce
While coding simply try to add the following uiConfig object to SwaggerOptions
Expected Behavior
Typescript should recognize supportedSubmitMethods, if you add // @ts-ignore the field actually works
The text was updated successfully, but these errors were encountered: