You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| URI (†) |`OpenAPIRuntime.URIEncoder`|`OpenAPIRuntime.URIDecoder`| Path, query, headers |
29
+
| XML (†) |`OpenAPIRuntime.CustomCoder`|`OpenAPIRuntime.CustomCoder`| Bodies |
30
+
| URI (††) |`OpenAPIRuntime.URIEncoder`|`OpenAPIRuntime.URIDecoder`| Path, query, headers |
30
31
| Plain text |`OpenAPIRuntime.StringEncoder`|`OpenAPIRuntime.StringDecoder`| Bodies |
31
32
32
-
> †: Configurable implementation of variable expansion from URI Template (RFC 6570), the `application/x-www-form-urlencoded` serialization from RFC 1866, and OpenAPI 3.0.3. For details of the supported combinations, review <doc:Supported-OpenAPI-features>.
33
+
> †: XML support is optional, and not enabled by default. Encoding and decoding requires to define a `OpenAPIRuntime.CustomCoder` in `OpenAPIRuntime.Configuration` initializer.
34
+
35
+
> ††: Configurable implementation of variable expansion from URI Template (RFC 6570), the `application/x-www-form-urlencoded` serialization from RFC 1866, and OpenAPI 3.0.3. For details of the supported combinations, review <doc:Supported-OpenAPI-features>.
33
36
34
37
While the generator attempts to catch invalid inputs at generation time, there are still combinations of `Codable` types and locations that aren't compatible, and will only get caught at runtime by the specific coder implementation. For example, one could ask the `StringEncoder` to encode an array, but the encoder will throw an error, as containers are not supported in that encoder.
35
38
@@ -50,6 +53,9 @@ Below is a list of the "dimensions" across which the helper methods differ:
50
53
-`JSON`
51
54
- example content type: `application/json` and any with the `+json` suffix
52
55
- `{"color": "red", "power": 24}`
56
+
-`XML`
57
+
- example content type: `application/xml` and any with the `+xml` suffix
0 commit comments