Skip to content

Empty JSON/XML request bodies cause exceptions even if endpoint allows empty request bodies #215

Description

@Toastbrot236

If an endpoint's content type is configured to be JSON or XML, Bunkum will try to deserialize the request body even if it's empty and the endpoint is set to allow empty bodies (it has an AllowEmptyBodyAttribute and a nullable body parameter). This will cause exceptions to be thrown due to the respective serializer not being able to deserialize the body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions