Skip to content

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

Open
Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/eloquent-date-filter-schema
Open

Maxcastel wants to merge 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}.

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