Based on modifications in the swift-openapi-runtime, I've added support for XML coding strategy and content-type category.
Result
Bodies with XML content-type can be encoded and decoded through xmlCoder in OpenAPIRuntime.Configuration.
Test Plan
I've updated test for ContentType parsing with application/xml content-type.
Encoding and decoding to XML are out of scope of the tests, because encoding and decoding logic must be provided by user through custom coder implementation.
Motivation
See this issue for more.
Modifications
Based on modifications in the swift-openapi-runtime, I've added support for XML coding strategy and content-type category.
Result
Bodies with XML content-type can be encoded and decoded through
xmlCoder
inOpenAPIRuntime.Configuration
.Test Plan
I've updated test for ContentType parsing with
application/xml
content-type. Encoding and decoding to XML are out of scope of the tests, because encoding and decoding logic must be provided by user through custom coder implementation.