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 emitter fails with "duplicate type name" error when @parameterVisibility is empty and Resource contains a path or query parameter #5882

Open
markcowl opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working emitter:openapi3 Issues for @typespec/openapi3 emitter triaged:core
Milestone

Comments

@markcowl
Copy link
Contributor

markcowl commented Feb 6, 2025

Repro here

This seems to occur because no visibility transforms are applied, the http metadata transform strips the path parameter from the request (and the query parameter from the response) and the request and response schemas have the same name but are different. The OpenAPI emtter should be able to rename schemas that differ only by stripped metadata

@markcowl markcowl added the bug Something isn't working label Feb 10, 2025
@markcowl markcowl added this to the Backlog milestone Feb 10, 2025
@markcowl markcowl added the emitter:openapi3 Issues for @typespec/openapi3 emitter label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working emitter:openapi3 Issues for @typespec/openapi3 emitter triaged:core
Projects
None yet
Development

No branches or pull requests

1 participant