Skip to content

Generate OpenAPI schema for error responses #6918

Description

@c1tru55

Description

API platform should know default structure of own error responses, see:

\ApiPlatform\State\ApiResource\Error
\ApiPlatform\Validator\Exception\ValidationException

but don't generate schema for it. as a result you can't generate models for it and automatically map error responses in external apps.

Example

image

https://symfony-devs.slack.com/archives/C39FKU9AL/p1736882842918879?thread_ts=1736854101.898269&cid=C39FKU9AL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions