Skip to content

[5.x] Ensure asset validation rules are returned as strings to GraphQL#11781

Merged
jasonvarga merged 3 commits intostatamic:5.xfrom
ryanmitchell:fix/issue-7986
May 14, 2025
Merged

[5.x] Ensure asset validation rules are returned as strings to GraphQL#11781
jasonvarga merged 3 commits intostatamic:5.xfrom
ryanmitchell:fix/issue-7986

Conversation

@ryanmitchell
Copy link
Copy Markdown
Contributor

This PR ensures that the custom asset validation rules provided to GraphQL are returned as strings. Currently as they are class based they are returned as '{}'.

Closes #7986

Comment thread src/GraphQL/Types/FormType.php Outdated
@jasonvarga jasonvarga merged commit 4efb48c into statamic:5.x May 14, 2025
24 checks passed
@ryanmitchell ryanmitchell deleted the fix/issue-7986 branch May 22, 2025 13:32
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.

Form validation rules for Asset fieldtypes show incorrectly in GraphQL

3 participants