Skip to content

Commit

Permalink
feat: support URI as simple type (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Mar 21, 2021
1 parent 040515b commit f9c5c48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### `jsonschema-generator`
#### Changed
- Increase of Jackson dependency version to 2.12.1
- Include `java.net.URI` in handling of `Option.ADDITIONAL_FIXED_TYPES`.

### `jsonschema-module-jackson`
#### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static SimpleTypeModule forPrimitiveAndAdditionalTypes() {
java.util.Date.class, java.util.Calendar.class)
.forEach(javaType -> module.withStringType(javaType, "date-time"));
module.withStringType(java.util.UUID.class, "uuid");
module.withStringType(java.net.URI.class, "uri");
module.withStringType(java.time.ZoneId.class);
module.withIntegerType(java.math.BigInteger.class);

Expand Down

0 comments on commit f9c5c48

Please sign in to comment.