From c7f3a41f2a1bba5b1b8f7353b459635d0aa2ee71 Mon Sep 17 00:00:00 2001 From: Steve Hu Date: Mon, 25 Nov 2019 10:11:08 -0500 Subject: [PATCH] upgrade to 1.0.28 and update changelog --- CHANGELOG.md | 8 ++++++++ README.md | 14 +++++++++++--- pom.xml | 2 +- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ba779888..2c3f4c0e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed +## 1.0.28 - 2019-11-25 + +### Added + +### Changed + +- fixes #219 Fix for oneOf when not all properties are matched. Thanks @aznan2 + ## 1.0.27 - 2019-11-18 ### Added diff --git a/README.md b/README.md index 5c30e707e..f85adb22f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ [![Build Status](https://travis-ci.org/networknt/json-schema-validator.svg?branch=master)](https://travis-ci.org/networknt/json-schema-validator) [![codecov.io](https://codecov.io/github/networknt/json-schema-validator/coverage.svg?branch=master)](https://codecov.io/github/networknt/json-schema-validator?branch=master) -This is a Java implementation of the [JSON Schema Core Draft v4-v7](http://json-schema.org/latest/json-schema-core.html) specification for JSON schema validation. In addition, it also works for OpenAPI 3.0 request/response validation with some [configuration flags](doc/config.md). The default JSON parser is the [Jackson](https://github.com/FasterXML/jackson) that is the most popular one. As it is a key component in our [light-4j](https://github.com/networknt/light-4j) microservices framework to validate request/response against OpenAPI specification for [light-rest-4j](http://www.networknt.com/style/light-rest-4j/) and RPC schema for [light-hybrid-4j](http://www.networknt.com/style/light-hybrid-4j/) at runtime, performance is the most important aspect in the design. +This is a Java implementation of the [JSON Schema Core Draft v4, v6, v7 and v2019-09](http://json-schema.org/latest/json-schema-core.html) specification for JSON schema validation. In addition, it also works for OpenAPI 3.0 request/response validation with some [configuration flags](doc/config.md). The default JSON parser is the [Jackson](https://github.com/FasterXML/jackson) that is the most popular one. As it is a key component in our [light-4j](https://github.com/networknt/light-4j) microservices framework to validate request/response against OpenAPI specification for [light-rest-4j](http://www.networknt.com/style/light-rest-4j/) and RPC schema for [light-hybrid-4j](http://www.networknt.com/style/light-hybrid-4j/) at runtime, performance is the most important aspect in the design. ## Why this library @@ -30,6 +30,14 @@ You can run the performance tests for three libraries from [https://github.com/n It uses Jackson that is the most popular JSON parser in Java. If you are using Jackson parser already in your project, it is natural to choose this library over others for schema validation. +#### YAML Support + +The library works with JSON and YAML on both schema definitions and input data. + +#### OpenAPI Support + +The OpenAPI 3.0 specification is using JSON schema to validate the request/response, but there are some differences. With a configuration file, you can enable the library to work with OpenAPI 3.0 validation. + #### Dependency Following the design principle of the Light Platform, this library has minimum dependencies to ensure there are no dependency conflicts when using it. @@ -72,7 +80,7 @@ Maven: com.networknt json-schema-validator - 1.0.27 + 1.0.28 ``` @@ -80,7 +88,7 @@ Gradle: ``` dependencies { - compile(group: "com.networknt", name: "json-schema-validator", version: "1.0.27"); + compile(group: "com.networknt", name: "json-schema-validator", version: "1.0.28"); } ``` diff --git a/pom.xml b/pom.xml index 4353d126b..400e45d1b 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ 4.0.0 com.networknt json-schema-validator - 1.0.27 + 1.0.28 bundle A json schema validator that supports draft v4 https://github.com/networknt/json-schema-validator