Skip to content

Question: Why do validation errors raise InvalidMediaTypeValue? #175

Closed
@berislavlopac

Description

@berislavlopac

I have noticed that, when sending an incorrect request (e.g. an object with a string where a number is expected), MediaType.cast and MediaType.unmarshal will raise InvalidMediaTypeValue in all cases, which is actually misleading: the media type is correct (e.g. application/json), but the validation raises an incorrect error. Was that on purpose?

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