core icon indicating copy to clipboard operation
core copied to clipboard

Generate OpenAPI schema for error responses

Open c1tru55 opened this issue 1 year ago • 0 comments

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

c1tru55 avatar Jan 15 '25 10:01 c1tru55