Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@typespec/http-specs"
---

Fix payload/xml XmlErrorValue response to wrap SimpleModel with content-type "application/xml" for consistency with XmlError
5 changes: 4 additions & 1 deletion packages/http-specs/specs/payload/xml/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -329,5 +329,8 @@ interface XmlErrorValue {
```
""")
@get
get(): SimpleModel | XmlError;
get(): {
@header("content-type") contentType: "application/xml";
@body body: SimpleModel;
} | XmlError;
}
Loading