Skip to content

fix(jsonapi): declare items on no-pagination collection data schema - #8727

Merged
soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/jsonapi-collection-no-pagination-items-8699
Oct 19, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
soyuka:fix/jsonapi-collection-no-pagination-items-8699

Conversation

@soyuka

@soyuka soyuka commented Oct 19, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 4.4
Tickets Fixes #8699
License MIT
Doc PR ∅

JsonApiCollectionBaseSchemaNoPagination declared data as type: array without items, which OpenAPI 3.0 validators reject. Adds items: {type: object}, the concrete collection schema still narrows it through allOf.

JsonApiCollectionBaseSchemaNoPagination declared `data` as
`type: array` without `items`, which OpenAPI 3.0 validators reject.
The concrete collection schema still narrows it through allOf.

Fixes api-platform#8699
@soyuka
soyuka force-pushed the fix/jsonapi-collection-no-pagination-items-8699 branch from 0bd3eb5 to f29d796 Compare October 19, 2026 12:17
@soyuka
soyuka changed the base branch from 4.4 to 5.0 October 19, 2026 12:17
@soyuka
soyuka merged commit 82496b3 into api-platform:5.0 Oct 19, 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