Skip to content

Conversation

@eshiota
Copy link
Collaborator

@eshiota eshiota commented Oct 20, 2025

Currently the custom JSON Logic operators are only applied when a field's handleValidation callback is called. This works for custom JSON Logic validations, but not when a computed value needs a custom operator.

This PR applies the custom JSON Logic operators also when creating the final schema.

As a side note, I've previously attempted to simply add the validators when calling createHeadlessForm, but this affects all subsequent calls for different forms, since they all share the same JSON Logic instance (see #237).

@eshiota eshiota merged commit 15da456 into main Oct 21, 2025
5 checks passed
@eshiota eshiota deleted the fix-json-logic-lifecycle branch October 21, 2025 12:57
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.

4 participants