Closed casantosmu closed 6 months ago
As mentioned in the issue, there was another potential solution: when transforming the Fastify schema to OpenAPI, updating the parameter "*" to "wildcard" could have been an option. Similar to the transformation applied to the URL. However, I believe it is simpler for everyone to maintain consistency by preserving the parameter names in the path rather than modifying them.
looking at the change, I don't think it's semver-major.
This plugin transforms the route "/example/*" into "/example/{wildcard}". Therefore, the schema for a route with a wildcard should be defined as follows:
This pull request allows defining the schema for a route with a wildcard as expected:
This resolves the issue discussed in this GitHub issue.
Checklist
npm run test
andnpm run benchmark