Replies: 1 comment
-
Pkl definitely does this, albeit, it works a little differently to JSON logic. With Pkl, you would define your validation and your data in Pkl, then have that produce JSON. For example: MyApplication.pkl
application.pkl
Then You can also embed Pkl directly into your application without going through JSON, if there is an appropriate language binding for it. Right now, Pkl has limited support for validating external JSON. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For some of our complex business rules, we use jsonlogic, to get appropriate JSON Configuration. For instance : if we give
A
as input to our rules in jsonlogic, then it will validate some rules and give us a JSON output and it will give a different output forB
This is useful, but not readable, testable and things like that ..
we are looking for an alternative to jsonlogic. Wondering if pkl can be used for such scenarios
Beta Was this translation helpful? Give feedback.
All reactions