Skip to content

Commit

Permalink
Release 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Oct 25, 2019
1 parent ab1220a commit 1312c20
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Creating JSON Schema (Draft 7) from your Java classes utilising Jackson (inspire
<dependency>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
</dependency>
```

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator</artifactId>
<version>3.3.0-SNAPSHOT</version>
<version>3.3.0</version>
<packaging>jar</packaging>

<licenses>
Expand All @@ -27,7 +27,7 @@
<connection>scm:git:ssh://github.com/victools/jsonschema-generator.git</connection>
<developerConnection>scm:git:ssh://[email protected]/victools/jsonschema-generator.git</developerConnection>
<url>https://github.com/victools/jsonschema-generator</url>
<tag>HEAD</tag>
<tag>v3.3.0</tag>
</scm>

<organization>
Expand Down

0 comments on commit 1312c20

Please sign in to comment.