Skip to content

Generate correct examples for OpenApi 3.0#7218

Merged
soyuka merged 1 commit into
api-platform:4.1from
Fylax:fix/openapi/components/examples
Jun 19, 2025
Merged

Generate correct examples for OpenApi 3.0#7218
soyuka merged 1 commit into
api-platform:4.1from
Fylax:fix/openapi/components/examples

Conversation

@Fylax

@Fylax Fylax commented Jun 16, 2025

Copy link
Copy Markdown
Contributor
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

soyuka commented Jun 19, 2025

Copy link
Copy Markdown
Member

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