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

fix(openapi): document error outputs using json-schemas #6923

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Jan 20, 2025

Q A
Branch? not sure yet
Tickets Closes #6918
License MIT
Doc PR n/a

This fixes many issues related to how errors and constraint violations are documented, it was reported in #6918 and is a follow up of #6748 (therefore I'd be up to add this on 4.1 instead of 4.0 as without the patch there are still inconsistencies).

A few screenshots:

20250120_16h42m54s_grim
20250120_16h42m48s_grim
20250120_16h42m36s_grim

I still need to add a few tests as this was hard to implement we need to cover regressions...

@soyuka soyuka force-pushed the fix/6918 branch 2 times, most recently from 7f5dc5b to e3e2040 Compare January 20, 2025 20:35
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@soyuka soyuka force-pushed the fix/6918 branch 4 times, most recently from cef72ca to 0d1473f Compare January 27, 2025 14:38
@soyuka soyuka changed the base branch from 4.0 to 4.1 January 27, 2025 14:38
@soyuka soyuka merged commit b968ccd into api-platform:4.1 Jan 27, 2025
56 of 59 checks passed
@soyuka soyuka deleted the fix/6918 branch January 27, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants