Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate OpenAPI schema for error responses #6918

Open
c1tru55 opened this issue Jan 15, 2025 · 0 comments
Open

Generate OpenAPI schema for error responses #6918

c1tru55 opened this issue Jan 15, 2025 · 0 comments

Comments

@c1tru55
Copy link
Contributor

c1tru55 commented Jan 15, 2025

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 c1tru55 changed the title Generate OpenAPI schema for error responces Generate OpenAPI schema for error responses Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants