Consider adding a ResponseAsBool decorator to TCGC for HEAD request operations #1947
Labels
lib:azure-core
Issues for @azure-tools/typespec-azure-core library
lib:tcgc
Issues for @azure-tools/typespec-client-generator-core library
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 returnfalse
for 404 rather than throwing. This is needed for brownfield services in Azure.The text was updated successfully, but these errors were encountered: