You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,10 @@
3
3
4
4
# json-schema-validator
5
5
6
-
A Java json schema validator that support json schema draft v4. It is a key component in our
7
-
[light-java](https://github.com/networknt/light-java) microservices framework to validate request
8
-
against OpenAPI specification at runtime.
6
+
A Java json schema validator that supports json schema draft v4. It is a key component in our
7
+
[light-4j](https://github.com/networknt/light-4j) microservices framework to validate request
8
+
against OpenAPI specification for [light-rest-4j](http://www.networknt.com/style/light-rest-4j/)
9
+
and RPC schema for [light-hybrid-4j](http://www.networknt.com/style/light-hybrid-4j/) at runtime.
9
10
10
11
11
12
*[Why to use this library?](#why-to-use-this-library)
@@ -30,7 +31,7 @@ specification. It uses the [Jackson](https://github.com/FasterXML/jackson) for j
30
31
31
32
You can run the performance tests for three libraries from [https://github.com/networknt/json-schema-validator-perftest](https://github.com/networknt/json-schema-validator-perftest)
32
33
33
-
* It uses jackson which is the most popular JSON parser in Java.
34
+
* It uses Jackson which is the most popular JSON parser in Java.
34
35
35
36
36
37
@@ -42,7 +43,7 @@ Add the following to your `pom.xml`:
42
43
<dependency>
43
44
<groupId>com.networknt</groupId>
44
45
<artifactId>json-schema-validator</artifactId>
45
-
<version>0.1.7</version>
46
+
<version>0.1.16</version>
46
47
</dependency>
47
48
```
48
49
@@ -104,35 +105,36 @@ public class BaseJsonSchemaValidatorTest {
And the following is one of the test case in one of the test class extends from above base class. As you can see, it constructs JsonSchema
135
-
and JsonNode from String.
136
+
And the following is one of the test cases in one of the test classes extends from above base class. As you can see, it constructs
137
+
JsonSchema and JsonNode from String.
136
138
137
139
```java
138
140
JsonSchema schema = getJsonSchemaFromStringContent("{\"enum\":[1, 2, 3, 4],\"enumErrorCode\":\"Not in the list\"}");
@@ -144,15 +146,12 @@ and JsonNode from String.
144
146
145
147
## Known issues
146
148
147
-
I have just updated the test suites from the [official website](https://github.com/json-schema-org/JSON-Schema-Test-Suite) as the old ones were copied from another
148
-
Java validator. Now there are several issues that need to be addressed. All of them are edge cases in my opinion but need to be investigated. As my old test suites
149
-
were inherited from another Java JSON Schema Validator, I guess other Java Validator would have the same issues as these issues are in the Java Language itself.
149
+
I have just updated the test suites from the [official website](https://github.com/json-schema-org/JSON-Schema-Test-Suite) as the old ones were copied from another Java validator. Now there are several issues that need to be addressed. All of them are edge cases in my opinion
150
+
but need to be investigated. As my old test suites were inherited from another Java JSON Schema Validator, I guess other Java Validator would have the same issues as these issues are in the Java Language itself.
0 commit comments