Skip to content

fix(json-schema): use allOf for intersection types - #8653

Merged
soyuka merged 3 commits into
api-platform:5.0from
soyuka:fix/json-schema-intersection-allof
Oct 15, 2026
Merged

soyuka merged 3 commits into
api-platform:5.0from
soyuka:fix/json-schema-intersection-allof

Conversation

@soyuka

@soyuka soyuka commented Oct 7, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 5.0
Tickets ∅
License MIT
Doc PR ∅

A property typed A&B got its references wrapped in anyOf, an intersection means the value satisfies both so it's allOf. Unions keep anyOf, a test pins it.

Found while mapping Operation usage in json-schema for symfony/symfony#64279.

@soyuka
soyuka merged commit c33594a into api-platform:5.0 Oct 15, 2026
108 of 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