Skip to content

How to validate transformed errors with the schema #4989

@berdyshev

Description

@berdyshev

What should be the errorResponseSchema when the transformErrorResponse is used?

Here is the example of my configuration and there is a type error for the errorResponseSchema however it works in the actual app (sorry, I didn't integrate the actual API into the demo app).

If I will replace it with errorResponseSchema, the TS won't complain but the schema validation will fail with the missing data property.

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