diff --git a/README.md b/README.md index aa46d83..d97e4e9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Hope +# Hope [![Java CI with Maven](https://github.com/santanusinha/hope/actions/workflows/ci.yml/badge.svg)](https://github.com/santanusinha/hope/actions/workflows/ci.yml) Hope is a high level language for predicate evaluation on JSON written in java. It uses jackson for json handling and json-path for value extraction. #### Sample Hope expressions/rules ``` - "$.val" + 2 > 3 - "$.a" + "$.b" <= math.abs("$.c") + '/val' + 2 > 3 + '/a' + '/b' <= math.abs('/c') ``` #### Features @@ -20,7 +20,7 @@ Use the following dependency in your code. io.appform.hope hope-lang - 1.0.13 + 1.1.0 ``` @@ -37,7 +37,7 @@ The main class you need to know is `HopeLangEngine`. To use this class use the p The following code snippet evaluates an expression against a parsed jackson Json node. ``` final JsonNode root = new ObjectMapper().readTree("{\"val\" : 10 }"); - final String expr = " \"$.val\" + 2 > 9"; + final String expr = " '/val' + 2 > 9"; if(engine.evaluate(expr, root)) { ... } diff --git a/ReleaseNotes.md b/ReleaseNotes.md new file mode 100644 index 0000000..3c73c78 --- /dev/null +++ b/ReleaseNotes.md @@ -0,0 +1,6 @@ +# 1.1.0 + +- Supported field reference using json pointers +- Supported quotation using single quotes +- Jackson verion bump + diff --git a/hope-core/pom.xml b/hope-core/pom.xml index 3933c9d..a58d795 100644 --- a/hope-core/pom.xml +++ b/hope-core/pom.xml @@ -5,7 +5,7 @@ hope io.appform.hope - 1.0.13 + 1.1.0 4.0.0 diff --git a/hope-lang/pom.xml b/hope-lang/pom.xml index 5d2b31e..a15fb4a 100644 --- a/hope-lang/pom.xml +++ b/hope-lang/pom.xml @@ -5,7 +5,7 @@ hope io.appform.hope - 1.0.13 + 1.1.0 4.0.0 diff --git a/pom.xml b/pom.xml index 116cd63..d915c70 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.appform.hope hope pom - 1.0.13 + 1.1.0 Hope https://github.com/santanusinha/hope