Azure / autorest

OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
MIT License
4.6k stars 733 forks source link

[openapi-to-tsp][Feature request] Generate response headers defined in swagger #4939

Open catalinaperalta opened 6 months ago

catalinaperalta commented 6 months ago

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