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

SpEL support #613

Merged
merged 88 commits into from
Feb 4, 2022
Merged

SpEL support #613

merged 88 commits into from
Feb 4, 2022

Conversation

ukrbublik
Copy link
Owner

@ukrbublik ukrbublik commented Jan 13, 2022

Added support of Spring Expression Language (SpEL) for import and export.

Depends on benmarch/spel2js#14

  • Added loadFromSpel and spelFormat to Utils
  • Updated examples/demo with SpEL import and export
  • Added new demo examples/demo_switch - http://localhost:3001/switch - demonstrates switch-case mode (ConditionList) with SpEL and Utils.getSwitchValues
  • Added new "brother" util functions that returns [result, errors] instead of just result as in original:
    • _loadFromJsonLogic
    • _sqlFormat
    • _spelFormat
    • _mongodbFormat
  • Added excludeOperators for type config. See excludeOperators: ["proximity"] in demo

New config options:

  • canRegroupCases
  • maxNumberOfCases
  • canLeaveEmptyCase
  • addCaseLabel
  • addDefaultCaseLabel
  • defaultCaseLabel
  • renderSwitchPrefix

New config properties:

  • isSpelVariable
  • isSpelMap for !struct
  • isSpelArray for !group
  • isSpelItemMap for !group

@ukrbublik ukrbublik marked this pull request as ready for review February 3, 2022 12:36
@ukrbublik ukrbublik linked an issue Feb 4, 2022 that may be closed by this pull request
@ukrbublik ukrbublik merged commit e9996ed into master Feb 4, 2022
@ukrbublik ukrbublik deleted the spel-support branch March 15, 2022 20:51
This pull request was closed.
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.

Create a way to check if loadFromJsonLogic had errors
1 participant