-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
lib:http-specsFor issues/prs related to the @typespec/http-specs packageFor issues/prs related to the @typespec/http-specs package
Description
For
| get(): SimpleModel | XmlError; |
SimpleModelis not wrapped with content-type header "application/xml" then its default content-type is "application/json"XmlErrordefines content-type header as "application/xml"
It is very strange that response and error response has such different content-type.
Expected behavor:
We expect SimpleModel shall also be wrapped with content-type "application/xml" to keep consistent with error response like other cases in this file
NOTE:
- DO add changelog under .chronus/changes
- DO necessary check before commit.
Reactions are currently unavailable
Metadata
Metadata
Labels
lib:http-specsFor issues/prs related to the @typespec/http-specs packageFor issues/prs related to the @typespec/http-specs package