Skip to content

[5.x] Asset validation rules as string in GraphQL, part 2#11790

Merged
jasonvarga merged 1 commit into5.xfrom
gql-validation-class-strings
May 14, 2025
Merged

[5.x] Asset validation rules as string in GraphQL, part 2#11790
jasonvarga merged 1 commit into5.xfrom
gql-validation-class-strings

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

This follows #11781. After merging had second thoughts about it.
Rather than just checking for __toString, I thought it it should be a bit more explicit, so it now uses a contract and dedicated method.
The fall back is now the class name with ::class suffix.

@jasonvarga jasonvarga merged commit 50ae5a2 into 5.x May 14, 2025
26 checks passed
@jasonvarga jasonvarga deleted the gql-validation-class-strings branch February 14, 2026 19:14
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