Skip to content

Support not converting const to enum #877

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TastyPi
Copy link

@TastyPi TastyPi commented May 30, 2025

Provides a new convertConstToEnum option in order to fix #876.

I had to pipe the plugin options throughout all the functions in openapi/util.js, let me know if there was a better way to do that.

Checklist

  • run npm run test and npm run benchmark

npm run benchmark does not seem to exist? npm run test succeeds.

@mcollina
Copy link
Member

Sorry for being late. This now conflicts.

@TastyPi
Copy link
Author

TastyPi commented Jul 31, 2025

@mcollina rebased, PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAPI 3.1.x supports const, @fastify/swagger converts consts to enums
2 participants