basdijkstra / rest-assured-net

C# DSL for writing readable tests for HTTP-based APIs
Apache License 2.0
145 stars 19 forks source link

Add option to override response Content-Type header when deserializing response #73

Closed basdijkstra closed 1 year ago

basdijkstra commented 1 year ago

In some APIs, the response Content-Type header value might not match the actual response body format, which may cause problems when deserializing them.

By adding an option to override the actual header value with a custom value, you can force deserialization using a specific deserializer.

basdijkstra commented 1 year ago

Added in https://github.com/basdijkstra/rest-assured-net/commit/60095029757191516c3b7d1fa6aad27ce4699985.