Skip to content

fix(laravel): use a valid schema for the Eloquent DateFilter - #8906

Merged
soyuka merged 1 commit into
api-platform:5.0from
Maxcastel:fix/eloquent-date-filter-schema
Dec 1, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
Maxcastel:fix/eloquent-date-filter-schema

Conversation

@Maxcastel

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
License MIT

DateFilter::getSchema() on Eloquent returns {type: date}, which isn't a JSON Schema type, so every [eq]/[gt]/... parameter in the OpenAPI doc had an invalid schema. #7131 fixed it for Doctrine only, this uses the same {type: string, format: date}.

@soyuka
soyuka merged commit dca27d1 into api-platform:5.0 Dec 1, 2026
107 of 117 checks passed
@soyuka

soyuka commented Dec 1, 2026

Copy link
Copy Markdown
Member

thanks!

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