commit | 194abaa66f3154d77d82b1fb20ff778b01753f3c | [log] [tgz] |
---|---|---|
author | Reinhard Weyand <reinhard.weyand@zalando.de> | Wed Oct 19 09:41:30 2016 +0200 |
committer | Reinhard Weyand <reinhard.weyand@zalando.de> | Wed Oct 19 09:41:30 2016 +0200 |
tree | 8646141091e4c37032b256cf009124a70683e7ad | |
parent | 046d082e04532064d79d18d07b0b5c679125b064 [diff] |
fixed broken escaping in uri pattern
A Java json schema validator that support json schema draft v4
This project is an implementation of the JSON Schema Core Draft v4 specification. It uses the Jackson for json parsing.
fge: 7130ms
everit-org: 1168ms
networknt: 223ms
You can run the performance tests for three libraries from https://github.com/networknt/json-schema-validator-perftest
Add the following to your pom.xml
:
<dependency> <groupId>com.networknt</groupId> <artifactId>json-schema-validator</artifactId> <version>0.1.0</version> </dependency>
JsonSchema schema = getJsonSchemaFromStringContent("{\"enum\":[1, 2, 3, 4],\"enumErrorCode\":\"Not in the list\"}"); JsonNode node = getJsonNodeFromStringContent("7"); Set<ValidationMessage> errors = schema.validate(node); assertThat(errors.size(), is(1));