Skip to content

Conversation

@aaa2000
Copy link
Contributor

@aaa2000 aaa2000 commented Dec 22, 2025

Q A
Branch? main for features / current stable version branch for bug fixes
Tickets Closes #5618 , #7465, #4313, #4656, #2838, #3880
License MIT
Doc PR api-platform/docs#...

Add Symfony uuid, Ramsey uuid and Ramsey uuid binary filters.

The PR avoids modifying the search filter to prevent regressions. Furthermore, supporting partial strategies for UUID requires more work. In PostgreSQL, I think we need to cast the UUID to a string in the SQL query.

Possible improvements:

  • filter by IRI
  • Add ODM support
  • Maybe implements \ApiPlatform\Metadata\JsonSchemaFilterInterface

@aaa2000 aaa2000 force-pushed the fix-7465-uuid-filter branch from f80b922 to 7f6964d Compare December 22, 2025 20:04
/**
* @internal
*/
class AbstractUuidFilter extends AbstractFilter implements OpenApiParameterFilterInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we not use the AbstractFilter ? It's really not necessary with QueryParameter and this will help skipping all the logic about:

  • property checks
  • value transformation (should be done by our parameter value casting)
  • documentation (use the new interfaces)

Copy link
Member

@soyuka soyuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, also note I'm working on a range filter that can be used with many different types (soyuka@c74675d)

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