Skip to content

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

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));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions