-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable passing in custom JsonSerializerSettings when (de-)serializing to/from JSON #84
Comments
To test this: create a new test where a request payload containing a date is serialized, use a custom JsonSerializerSettings object with a different value for the DateFormatString property and check that the date is formatted properly in the WireMock stub. |
Support for supplying custom Still to do: the same for deserialization, but I need to have a good look at how to create the right overloads. |
On second thought: maybe it’s better to pass in these settings in a method of their own rather than using overloads. Also need to add support for configuring these through RequestSpecification and RestAssuredConfig. |
6404657 adds the capability to set custom To do: specify custom |
Added the ability to supply custom JSON deserialization settings using |
Right now the default settings are used but I can think of plenty of use cases where custom settings might be useful.
Pass in as an overload to Body() for the request and DeserializeTo() and As() for the response.
The text was updated successfully, but these errors were encountered: