Skip to content

Configurable JSON DE-serialization support (Newtonsoft.Json vs System.Text.Json) #1445

@Stepami

Description

@Stepami

Is your feature request related to a problem? Please describe.

Currently, i am unable to control how WireMockServer accepts incoming messages. I would like to have API for request builders similar to what we got after #1341

Describe the solution you'd like

IJsonConverter jsonConverter = new MyJsonConverter();

Request.Create().WithBody(new MyDto(), jsonConverter);
Request.Create().WithBodyAsJson(new MyDto(), jsonConverter);
Request.Create().WithBodyAsProtoBuf(
    "greeter.GreetRequestGrpc",
    new JsonMatcher(new GreetRequestGrpc(), jsonConverter));

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions