Skip to content

Commit

Permalink
release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Jun 10, 2019
1 parent 5f76a4a commit 4ce5395
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ 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.0.0] – 2019-06-10
### Changed
- Simplify configuration API to be based on `FieldScope`/`MethodScope` respectively.
- Consolidate some utility functions into `FieldScope`/`MethodScope`.
Expand Down Expand Up @@ -48,7 +50,8 @@ 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/v2.0.0...HEAD
[Unreleased]: https://github.com/victools/jsonschema-generator/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/victools/jsonschema-generator/compare/v2.0.0...v3.0.0
[2.0.0]: https://github.com/victools/jsonschema-generator/compare/v1.0.2...v2.0.0
[1.0.2]: https://github.com/victools/jsonschema-generator/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/victools/jsonschema-generator/compare/v1.0.0...v1.0.1
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Creating JSON Schema (Draft 7) from your Java classes utilising Jackson (inspire
<dependency>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator</artifactId>
<version>2.0.0</version>
<version>3.0.0</version>
</dependency>
```

Expand Down Expand Up @@ -71,3 +71,15 @@ Module separateModule = new YourSeparateModule();
SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(objectMapper)
.with(separateModule);
```

#### Defining Desired Behaviour via individual configurations
```java
import com.github.victools.jsonschema.generator.FieldScope;
import com.github.victools.jsonschema.generator.SchemaGeneratorConfigBuilder;
```
```java
SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(objectMapper);
configBuilder.forFields()
// populate the "title" of all fields with a description of the field's type
.withTitleResolver(FieldScope::getSimpleTypeDescription);
```
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.0.0-SNAPSHOT</version>
<version>3.0.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.0.0</tag>
</scm>

<organization>
Expand Down

0 comments on commit 4ce5395

Please sign in to comment.