Skip to content

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