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

Data-driven validations and/or code shim #33

Open
benkamphaus opened this issue Jan 21, 2024 · 0 comments
Open

Data-driven validations and/or code shim #33

benkamphaus opened this issue Jan 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@benkamphaus
Copy link
Contributor

At present, per-entity processing validations in prepare and post-transactional validations are not wired in, as these required bespoke code. This functionality is still important, though. One workaround is just to write validations using normal specs or schema libs, trawling over entity types, and I might write an example of this somewhere, probably in tests, as an example. But many specs in CANDEL were about required attributes, allowed values as sets, min and max values, etc. and it would be easy to encode these in plain edn, either as part of or in addition to the simplified Unify schema edn representation. (Most likely in addition, maybe optionally produced from a shared representation by compile).

@benkamphaus benkamphaus added the enhancement New feature or request label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant