Skip to content

Conversation

@antoniocapelo
Copy link
Collaborator

The current anyOf implementation has 2 issues:

  • visually it breaks the form, as it wrongly interprets root anyOf as if it belonged to a select or checkbox group options

  • the error message is a string with a stringified json object which is wrong. It should target individual fields with issues, and not treat the anyOf as a single error.

This MR addresses it by:

  • not adding options if the field is the root
  • returning the actual failed validations for each field when an anyOf is not valid

eng-almeida
eng-almeida previously approved these changes Jul 23, 2025
@antoniocapelo antoniocapelo merged commit 37156c8 into main Jul 24, 2025
5 checks passed
@antoniocapelo antoniocapelo deleted the devxp-3292-fix-anyof-condition-for-json-schema-form-v1 branch July 24, 2025 15:51
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.

5 participants