-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(router): lua validate an expression against a schema #39
Conversation
ping @dndx |
ping @pluveto @chronolaw |
This PR is ready for merge, it just needs a final review. |
@chronolaw Please perform the final review and let's merge. |
We should also add a description in |
done |
ec405ba
to
3b0f471
Compare
I applied this PR to v1.0.5, and found that all ci tests passed. I think perhaps some dependency upgrade causes the regex behavior is different from v 1.0.5. After some tries, I found that the dependency |
In Rust regex crate, 1.8.0 changed a escape behavior, see: rust-lang/regex#501. |
437a5d4
to
e5b5c30
Compare
Co-authored-by: Chrono <[email protected]>
2c0648c
to
5c15238
Compare
Feature to validate an expression against a given schema.
syntax: ok, err = r.validate(schema, expr)
context: any
Returns
true
when the expression is valid.If the expression is invalid,
nil
and a string describing the reason will be returned.KAG-1524