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

Consider adding a ResponseAsBool decorator to TCGC for HEAD request operations #1947

Open
JoshLove-msft opened this issue Dec 4, 2024 · 0 comments
Labels
lib:azure-core Issues for @azure-tools/typespec-azure-core library lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@JoshLove-msft
Copy link
Member

The purpose of this decorator is to document that a HEAD operation should be modeled as Response<bool>. It should therefore treat 404 as success and the service method would return false for 404 rather than throwing. This is needed for brownfield services in Azure.

@JoshLove-msft JoshLove-msft added lib:azure-core Issues for @azure-tools/typespec-azure-core library lib:tcgc Issues for @azure-tools/typespec-client-generator-core library labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:azure-core Issues for @azure-tools/typespec-azure-core library lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

No branches or pull requests

1 participant