From 1312c20dfd9ed69340cc780ded7b9bb472cd5121 Mon Sep 17 00:00:00 2001 From: Carsten Wickner Date: Fri, 25 Oct 2019 21:10:07 +0200 Subject: [PATCH] Release 3.3.0 --- CHANGELOG.md | 6 +++--- README.md | 13 ++++++++++++- pom.xml | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 160bc986..0efe7907 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [3.3.0] - 2019-10-25 ### Fixed - Increase dependency version for jackson-databind (and jackson-core) to resolve security alerts. -- Avoid unnecessary quotes when representing constant string values (due to changed jackson behaviour) +- Avoid unnecessary quotes when representing constant string values (due to changed behaviour in jackson >=2.10.0) ## [3.2.0] – 2019-09-01 ### Added @@ -71,7 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Specific handling of optionals (two alternatives via standard options). - Pre-defined sets of standard options to cover different use-cases and simplify library usage. -[Unreleased]: https://github.com/victools/jsonschema-generator/compare/v3.2.0...HEAD +[3.3.0]: https://github.com/victools/jsonschema-generator/compare/v3.2.0...v3.3.0 [3.2.0]: https://github.com/victools/jsonschema-generator/compare/v3.1.0...v3.2.0 [3.1.0]: https://github.com/victools/jsonschema-generator/compare/v3.0.0...v3.1.0 [3.0.0]: https://github.com/victools/jsonschema-generator/compare/v2.0.0...v3.0.0 diff --git a/README.md b/README.md index c699bb96..21dc020b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Creating JSON Schema (Draft 7) from your Java classes utilising Jackson (inspire com.github.victools jsonschema-generator - 3.2.0 + 3.3.0 ``` @@ -62,6 +62,17 @@ SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(ob .without(Option.NULLABLE_FIELDS_BY_DEFAULT, Option.NULLABLE_METHOD_RETURN_VALUES_BY_DEFAULT); ``` +You can also define your own `OptionPreset` or provide an empty one and then build your desired configuration from there: +```java +import com.github.victools.jsonschema.generator.Option; +import com.github.victools.jsonschema.generator.OptionPreset; +import com.github.victools.jsonschema.generator.SchemaGeneratorConfigBuilder; +``` +```java +SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(objectMapper, new OptionPreset()) + .with(Option.ADDITIONAL_FIXED_TYPES, Option.PUBLIC_NONSTATIC_FIELDS); +``` + #### Adding Separate Modules (e.g. from another library) ```java import com.github.victools.jsonschema.generator.Module; diff --git a/pom.xml b/pom.xml index 80a37b3b..28b46aa5 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ com.github.victools jsonschema-generator - 3.3.0-SNAPSHOT + 3.3.0 jar @@ -27,7 +27,7 @@ scm:git:ssh://github.com/victools/jsonschema-generator.git scm:git:ssh://git@github.com/victools/jsonschema-generator.git https://github.com/victools/jsonschema-generator - HEAD + v3.3.0