Skip to content

fix(jsonapi): sparse fieldset reads the resource properties - #8862

Merged
soyuka merged 2 commits into
api-platform:5.0from
soyuka:fix/8860-sparse-fieldset-state-options
Nov 20, 2026
Merged

soyuka merged 2 commits into
api-platform:5.0from
soyuka:fix/8860-sparse-fieldset-state-options

Conversation

@soyuka

@soyuka soyuka commented Nov 20, 2026

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

The name converter part landed in #8861. With stateOptions the primary type's allowed fields came from the entity (the parameter properties are filled from getStateOptionsClass()), so a property that only exists on the resource could never be selected. The primary type now reads the readable properties of the resource class, like included types already do.

@soyuka
soyuka merged commit a032e79 into api-platform:5.0 Nov 20, 2026
116 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