Skip to content

Implement middleware that converts Valinor mapping errors into ApiProblems #3

@Ocramius

Description

@Ocramius

Feature Request

Q A
New Feature yes
RFC yes
BC Break no

Summary

In #1, we first provide a pre-configured mapper: this is fine for a "hello world", to make Valinor work.

In order for this package to be truly useful, it should produce proper responses in case of failures.

We already provide https://github.com/mezzio/mezzio-problem-details/blob/93d0fa1877138f53f7b726a1370cb472cc65d32d/README.md

This is just about providing a middleware that renders valinor errors into usable responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions