Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve validation API #1034

Merged
merged 75 commits into from May 14, 2024
Merged

Improve validation API #1034

merged 75 commits into from May 14, 2024

Conversation

ukrbublik
Copy link
Owner

@ukrbublik ukrbublik commented Mar 13, 2024

Fixes #977, #781, #1005, #374, #1021, #1016, #1033, #1036

Changes:

  • Breaking: Utils.validateTree returns array of errors
  • Utils.validateTree now checks LHS and RHS are completed
  • Deprecated Utils.validateAndFixTree and Utils.checkTree. Use Utils.sanitizeTree().fixedTree instead
  • Fixed validation of date ranges
  • Function validateValue in fieldSettings config can now return object {error, fixedValue}, error can be {key, args} for i18n

Also:

  • Added onInit prop to <Query>. Added 4th argument actions to onInit and onChange
  • Added optimizeRenderWithInternals to settings, default is false
  • Updated type RuleGroupExtProperties

Fixes:

  • Fixed import of select_any_in operator from JsonLogic
  • Fixed issue with antd and date/time pickers
  • Fixed typedef errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment