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

[Question]: How to add a 400 response to all endpoints #2339

Closed
davidrojo opened this issue Sep 20, 2024 · 1 comment
Closed

[Question]: How to add a 400 response to all endpoints #2339

davidrojo opened this issue Sep 20, 2024 · 1 comment
Labels

Comments

@davidrojo
Copy link

Version

4.30

Question

I want to add a 400 response to all documented methods with an error schema, but I don't want to add it to each method manually.
Is there a way to define it in nelmio_api_doc.yaml and be applied to all methods?

Additional context

No response

@DjordyKoert
Copy link
Collaborator

I think this relates to #2274

It's currently not possible to automatically document a response (2xx,4xx, default) to multiple routes automatically.

@github-staff github-staff deleted a comment from SAMBILI Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants