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-to-tsp][Feature request] Generate response headers defined in swagger #4939

Open
catalinaperalta opened this issue Apr 5, 2024 · 0 comments
Labels
openapi-to-tsp Tracks OpenAPI to Cadl converter issues

Comments

@catalinaperalta
Copy link
Member

The converter currently seems to ignore response headers defined in swagger when converting to TypeSpec. Some specifications that widely use response headers, like App Configuration, would benefit from outputting response headers to reduce the amount of work necessary post conversion.

Example specification: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2023-11-01/appconfiguration.json

Example readme: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/appconfiguration/data-plane/readme.md

cc @joheredi

@catalinaperalta catalinaperalta added the openapi-to-tsp Tracks OpenAPI to Cadl converter issues label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi-to-tsp Tracks OpenAPI to Cadl converter issues
Projects
None yet
Development

No branches or pull requests

1 participant