Skip to content

Generate correct examples for OpenApi 3.0 #7218

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

Fylax
Copy link
Contributor

@Fylax Fylax commented Jun 16, 2025

Q A
Branch? 4.0
Tickets -
License MIT
Doc PR -

In reference to PR #7203

In OpenApi 3.0 in component schema properties only example is allowed.
For this reason in LegacyOpenApiNormalizer we convert examples to example.

In OpenApi 3.0 in component schema properties only `example` is allowed.
Hence we convert examples to example.
@soyuka soyuka force-pushed the fix/openapi/components/examples branch from 2498006 to 275174c Compare June 19, 2025 08:55
@soyuka soyuka changed the base branch from 4.0 to 4.1 June 19, 2025 08:55
@soyuka soyuka merged commit c025b8f into api-platform:4.1 Jun 19, 2025
109 of 111 checks passed
@soyuka
Copy link
Member

soyuka commented Jun 19, 2025

thanks! I merged on 4.1, 4.0 is reserved to security fixes

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