Skip to content

Commit

Permalink
chore: release 4.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Mar 29, 2024
1 parent 4938865 commit bdca6c5
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 55 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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]
## [4.35.0] - 2024-03-29
### `jsonschema-generator`
#### Added
- check for custom definitions for `void` methods (this may result in exceptions inside custom configuration if a `null` return type is not considered)
Expand Down Expand Up @@ -821,7 +821,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Indicate a number's "exclusiveMaximum" according to `@DecimalMax` or `@Negative`


[Unreleased]: https://github.com/victools/jsonschema-generator/compare/v4.34.0...HEAD
[4.35.0]: https://github.com/victools/jsonschema-generator/compare/v4.34.0...v4.35.0
[4.34.0]: https://github.com/victools/jsonschema-generator/compare/v4.33.1...v4.34.0
[4.33.1]: https://github.com/victools/jsonschema-generator/compare/v4.33.0...v4.33.1
[4.33.0]: https://github.com/victools/jsonschema-generator/compare/v4.32.0...v4.33.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Additional documentation and configuration examples can be found here: https://v
<dependency>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator</artifactId>
<version>4.34.0</version>
<version>4.35.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion jsonschema-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-examples</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ObjectNode generateSchema() {
return generator.generateSchema(Example.class);
}

private static class SchemaRefDefinitionProvider implements CustomDefinitionProviderV2 {
private static final class SchemaRefDefinitionProvider implements CustomDefinitionProviderV2 {

private Class<?> mainType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public ObjectNode generateSchema() {

private <M extends MemberScope<?, ?>> void includeMessageAttribute(ObjectNode collectedMemberAttributes, M member,
SchemaGenerationContext context) {
Map<SchemaKeyword, String> validationMessages = new HashMap<>();
NotNull notNullAnnotation = this.getAnnotation(member, NotNull.class);
NotEmpty notEmptyAnnotation = this.getAnnotation(member, NotEmpty.class);
NotBlank notBlankAnnotation = this.getAnnotation(member, NotBlank.class);
Size sizeAnnotation = this.getAnnotation(member, Size.class);
Min minAnnotation = this.getAnnotation(member, Min.class);
Max maxAnnotation = this.getAnnotation(member, Max.class);
final Map<SchemaKeyword, String> validationMessages = new HashMap<>();
final NotNull notNullAnnotation = this.getAnnotation(member, NotNull.class);
final NotEmpty notEmptyAnnotation = this.getAnnotation(member, NotEmpty.class);
final NotBlank notBlankAnnotation = this.getAnnotation(member, NotBlank.class);
final Size sizeAnnotation = this.getAnnotation(member, Size.class);
final Min minAnnotation = this.getAnnotation(member, Min.class);
final Max maxAnnotation = this.getAnnotation(member, Max.class);

if (!member.isFakeContainerItemScope()) {
if (notNullAnnotation != null) {
Expand Down
4 changes: 2 additions & 2 deletions jsonschema-generator-bom/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-bom</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<packaging>pom</packaging>

<properties>
Expand All @@ -26,7 +26,7 @@
<connection>scm:git:https://github.com/victools/jsonschema-generator.git</connection>
<developerConnection>scm:git:https://github.com/victools/jsonschema-generator.git</developerConnection>
<url>https://github.com/victools/jsonschema-generator</url>
<tag>HEAD</tag>
<tag>v4.35.0</tag>
</scm>

<organization>
Expand Down
40 changes: 7 additions & 33 deletions jsonschema-generator-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-bom</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-bom/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-generator-parent</artifactId>
Expand Down Expand Up @@ -132,19 +132,19 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<file.encoding>UTF-8</file.encoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- maven plugins -->
<maven.plugin.version.checkstyle>3.2.0</maven.plugin.version.checkstyle>
<version.checkstyle>9.3</version.checkstyle>
<maven.plugin.version.checkstyle>3.3.1</maven.plugin.version.checkstyle>
<version.checkstyle>10.14.1</version.checkstyle>
<maven.plugin.version.compiler>3.10.1</maven.plugin.version.compiler>
<maven.plugin.version.enforcer>3.2.1</maven.plugin.version.enforcer>
<maven.plugin.version.jacoco>0.8.8</maven.plugin.version.jacoco>
<maven.plugin.version.javadoc>3.4.1</maven.plugin.version.javadoc>
<maven.plugin.version.javadoc>3.6.3</maven.plugin.version.javadoc>
<maven.plugin.version.moditect>1.0.0.RC3</maven.plugin.version.moditect>
<maven.plugin.version.release>2.5.3</maven.plugin.version.release>
<maven.plugin.version.source>3.2.1</maven.plugin.version.source>
<maven.plugin.version.surefire>3.0.0-M7</maven.plugin.version.surefire>
<maven.plugin.version.surefire>3.2.5</maven.plugin.version.surefire>

<java.module.name>undefined</java.module.name>

Expand Down Expand Up @@ -314,32 +314,6 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${maven.plugin.version.jacoco}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down Expand Up @@ -371,7 +345,7 @@
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>$maven.plugin.version.release{}</version>
<version>${maven.plugin.version.release}</version>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-generator</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-module-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-module-jackson</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-module-jakarta-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-module-jakarta-validation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-module-javax-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-module-javax-validation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-module-swagger-1.5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-module-swagger-1.5</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jsonschema-module-swagger-2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-parent</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<relativePath>../jsonschema-generator-parent/pom.xml</relativePath>
</parent>
<artifactId>jsonschema-module-swagger-2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.github.victools</groupId>
<artifactId>jsonschema-generator-reactor</artifactId>
<version>4.35.0-SNAPSHOT</version>
<version>4.35.0</version>
<packaging>pom</packaging>

<name>Java JSON Schema Generator (Reactor)</name>
Expand Down

0 comments on commit bdca6c5

Please sign in to comment.