Skip to content

fix(openapi): use nullable instead of null type in 3.0 - #8754

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/jsonapi-openapi30-null-50
Oct 22, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/jsonapi-openapi30-null-50

Conversation

@soyuka

@soyuka soyuka commented Oct 22, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets Closes #8751
License MIT
Doc PR

spec_version=3.0.0 documents still carried {"type": "null"} members in oneOf/anyOf, which OpenAPI 3.0 does not allow. The downgrade drops them and sets nullable: true, collapsing a single remaining non-$ref member into the schema.

Tests: tests/Functional/OpenApiLegacySpecVersionTest.php, src/OpenApi/Tests/Serializer/LegacyOpenApiNormalizerTest.php.

@soyuka
soyuka force-pushed the fix/jsonapi-openapi30-null-50 branch from a9a27f9 to d1dc823 Compare October 22, 2026 09:01
@soyuka
soyuka merged commit 80d8690 into api-platform:5.0 Oct 22, 2026
117 checks passed
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.

1 participant