Skip to content
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

OpenAPI codegen is broken with wildcard in route params #51

Open
tpoisseau opened this issue Feb 28, 2025 · 0 comments
Open

OpenAPI codegen is broken with wildcard in route params #51

tpoisseau opened this issue Feb 28, 2025 · 0 comments
Labels
@tuyau/openapi Issues about OpenAPI generation

Comments

@tpoisseau
Copy link

And parameters appear 2 times:

  • Once in parameters with in: "path"
  • Once in "params" with in: "query"

* in params schema object is not escaped into a string, so it's an invalid key for yaml. (* symbol is used for advanced yaml feature to repeat entries.)

NB: because * is string[] it expand String.prototype props in schema.

Because the yaml is broken, /docs endpoint do not load correctly (content is empty for scaler, swagger-ui display an error)

Repro: tpoisseau/tuyau-openapi-repro@574f522

@Julien-R44 Julien-R44 added the @tuyau/openapi Issues about OpenAPI generation label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@tuyau/openapi Issues about OpenAPI generation
Projects
None yet
Development

No branches or pull requests

2 participants