Skip to content

.Body() only serialises to json objects and doesn't support other types such as binary files  #52

@Ewan88

Description

@Ewan88

I require the ability to submit binary files as part of a request body for testing.

I can't use .File() because this converts the request to a multipart/form - which my server does not expect.

The current implementation of Body() in RA/src/SetupContext.cs line 159 uses JsonConvert.Deserialize() but I need a way to prevent it from converting everything to json and use the correct serializer for whatever I pass in.

@DayneD89 - I know you're working on this at the moment, could you possibly look into this?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions