From 46724a4905ae73adabe5437d3a5724defda16f84 Mon Sep 17 00:00:00 2001 From: Christopher Molin <28791817+Chrimle@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:28:21 +0100 Subject: [PATCH] Add Bean Validation `@Email` annotation to fields with `format: email` (#224) Added Bean Validation for `String` fields with the `format` property set to `email`. This property value will annotate the generated field with `@Email`. Requires the `useBeanValidation` configOption to be set to `true`. The `format` property remains optional. --- README.md | 24 ++++++++++++------- docs/index.md | 24 ++++++++++++------- pom.xml | 2 +- src/main/resources/api.yaml | 3 +++ .../templates/generateBuilders.mustache | 2 +- src/main/resources/templates/javadoc.mustache | 2 +- .../resources/templates/licenseInfo.mustache | 4 ++-- .../resources/templates/modelEnum.mustache | 2 +- src/main/resources/templates/pojo.mustache | 2 +- .../templates/serializableModel.mustache | 2 +- .../templates/useBeanValidation.mustache | 5 +++- .../com/chrimle/example/GeneratedField.java | 12 +++++++++- .../java/com/chrimle/example/TestSuite.java | 1 + .../chrimle/example/utils/AssertionUtils.java | 7 ++++++ .../DeprecatedExampleEnum.java | 2 +- .../DeprecatedExampleRecord.java | 2 +- .../ExampleEnum.java | 2 +- .../ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 6 ++++- .../RecordWithInnerEnums.java | 2 +- .../DeprecatedExampleEnum.java | 2 +- .../DeprecatedExampleRecord.java | 2 +- .../ExampleEnum.java | 2 +- .../ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 6 ++++- .../RecordWithInnerEnums.java | 2 +- .../DeprecatedExampleEnum.java | 2 +- .../DeprecatedExampleRecord.java | 2 +- .../example/generateBuilders/ExampleEnum.java | 2 +- .../generateBuilders/ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 20 +++++++++++++++- .../RecordWithInnerEnums.java | 2 +- .../DeprecatedExampleEnum.java | 2 +- .../DeprecatedExampleRecord.java | 2 +- .../serializableModel/ExampleEnum.java | 2 +- .../serializableModel/ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 6 ++++- .../RecordWithInnerEnums.java | 2 +- .../standard/DeprecatedExampleEnum.java | 2 +- .../standard/DeprecatedExampleRecord.java | 2 +- .../chrimle/example/standard/ExampleEnum.java | 2 +- .../example/standard/ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../standard/RecordWithAllConstraints.java | 6 ++++- .../standard/RecordWithInnerEnums.java | 2 +- .../DeprecatedExampleEnum.java | 2 +- .../DeprecatedExampleRecord.java | 2 +- .../useBeanValidation/ExampleEnum.java | 2 +- .../useBeanValidation/ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 6 ++++- .../RecordWithInnerEnums.java | 2 +- .../DeprecatedExampleEnum.java | 2 +- .../DeprecatedExampleRecord.java | 2 +- .../useEnumCaseInsensitive/ExampleEnum.java | 2 +- .../useEnumCaseInsensitive/ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 6 ++++- .../RecordWithInnerEnums.java | 2 +- .../useJakartaEe/DeprecatedExampleEnum.java | 2 +- .../useJakartaEe/DeprecatedExampleRecord.java | 2 +- .../example/useJakartaEe/ExampleEnum.java | 2 +- .../example/useJakartaEe/ExampleRecord.java | 2 +- .../ExampleRecordWithDefaultFields.java | 2 +- ...pleRecordWithNullableFieldsOfEachType.java | 2 +- ...pleRecordWithRequiredFieldsOfEachType.java | 2 +- .../RecordWithAllConstraints.java | 6 ++++- .../useJakartaEe/RecordWithInnerEnums.java | 2 +- 86 files changed, 184 insertions(+), 98 deletions(-) diff --git a/README.md b/README.md index c338712c..6813470a 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The mustache templates can be acquired through multiple ways. io.github.chrimle openapi-to-java-records-mustache-templates - 2.1.1 + 2.2.0 ``` @@ -56,10 +56,9 @@ Place the file(s) in desired directory. Then, in the Maven build configuration, ## Additional Configurations The generated classes are customizable by using ``-properties. -In this example, each generated class will be named with the suffix "DTO", and fields of generated records will be annotated with [Jakarta Bean Validation annotations](https://jakarta.ee/specifications/bean-validation/3.0/jakarta-bean-validation-spec-3.0.html#builtinconstraints). +In this example, each generated class field will be annotated with [Jakarta Bean Validation annotations](https://jakarta.ee/specifications/bean-validation/3.0/jakarta-bean-validation-spec-3.0.html#builtinconstraints). ```xml - DTO true @@ -106,6 +105,7 @@ components: - height - ssn - aliases + - email - trackingCode properties: name: @@ -148,6 +148,10 @@ components: description: Telephone Number type: string nullable: true + email: + description: Email Address + type: string + format: email trackingCode: description: Tracking code for Web analytics type: string @@ -183,33 +187,36 @@ import ...; * @param age Age (years) * @param gender Gender * @param height Height (m) - * @param legalGuardian PersonDTO + * @param legalGuardian Person * @param ssn Social Security Number * @param aliases Known Aliases * @param telephoneNumber Telephone Number + * @param email Email Address * @param trackingCode Tracking code for Web analytics */ @Deprecated -public record PersonDTO( +public record Person( @javax.annotation.Nonnull @Valid @NotNull Name name, @javax.annotation.Nonnull @NotNull @Min(0) @Max(100) Integer age, @javax.annotation.Nonnull @NotNull GenderEnum gender, @javax.annotation.Nonnull @NotNull @DecimalMin("0") BigDecimal height, - @javax.annotation.Nonnull @Valid PersonDTO legalGuardian, + @javax.annotation.Nonnull @Valid Person legalGuardian, @javax.annotation.Nonnull @NotNull @Pattern(regexp = "^\\d{3}-\\d{2}-\\d{4}$") String ssn, @javax.annotation.Nonnull @NotNull @Size(min = 1, max = 3) Set aliases, @javax.annotation.Nullable String telephoneNumber, + @javax.annotation.Nonnull @NotNull @Email String email, @javax.annotation.Nonnull @NotNull @Size(min = 5, max = 50) String trackingCode) { - public PersonDTO( + public Person( @javax.annotation.Nonnull final Name name, @javax.annotation.Nonnull final Integer age, @javax.annotation.Nonnull final GenderEnum gender, @javax.annotation.Nonnull final BigDecimal height, - @javax.annotation.Nonnull final PersonDTO legalGuardian, + @javax.annotation.Nonnull final Person legalGuardian, @javax.annotation.Nonnull final String ssn, @javax.annotation.Nullable final Set aliases, @javax.annotation.Nullable final String telephoneNumber, + @javax.annotation.Nonnull final String email, @javax.annotation.Nullable final String trackingCode) { this.name = name; this.age = age; @@ -219,6 +226,7 @@ public record PersonDTO( this.ssn = ssn; this.aliases = Objects.requireNonNullElse(aliases, new LinkedHashSet<>()); this.telephoneNumber = telephoneNumber; + this.email = email; this.trackingCode = Objects.requireNonNullElse(trackingCode, "utm_source=default"); } diff --git a/docs/index.md b/docs/index.md index b91032e5..99049aea 100644 --- a/docs/index.md +++ b/docs/index.md @@ -24,7 +24,7 @@ The mustache templates can be acquired through multiple ways. io.github.chrimle openapi-to-java-records-mustache-templates - 2.1.1 + 2.2.0 ``` @@ -55,10 +55,9 @@ Place the file(s) in desired directory. Then, in the Maven build configuration, ## Additional Configurations The generated classes are customizable by using ``-properties. -In this example, each generated class will be named with the suffix "DTO", and fields of generated records will be annotated with [Jakarta Bean Validation annotations](https://jakarta.ee/specifications/bean-validation/3.0/jakarta-bean-validation-spec-3.0.html#builtinconstraints). +In this example, each generated class field will be annotated with [Jakarta Bean Validation annotations](https://jakarta.ee/specifications/bean-validation/3.0/jakarta-bean-validation-spec-3.0.html#builtinconstraints). ```xml - DTO true @@ -104,6 +103,7 @@ components: - height - ssn - aliases + - email - trackingCode properties: name: @@ -146,6 +146,10 @@ components: description: Telephone Number type: string nullable: true + email: + description: Email Address + type: string + format: email trackingCode: description: Tracking code for Web analytics type: string @@ -180,33 +184,36 @@ import ...; * @param age Age (years) * @param gender Gender * @param height Height (m) - * @param legalGuardian PersonDTO + * @param legalGuardian Person * @param ssn Social Security Number * @param aliases Known Aliases * @param telephoneNumber Telephone Number + * @param email Email Address * @param trackingCode Tracking code for Web analytics */ @Deprecated -public record PersonDTO( +public record Person( @javax.annotation.Nonnull @Valid @NotNull Name name, @javax.annotation.Nonnull @NotNull @Min(0) @Max(100) Integer age, @javax.annotation.Nonnull @NotNull GenderEnum gender, @javax.annotation.Nonnull @NotNull @DecimalMin("0") BigDecimal height, - @javax.annotation.Nonnull @Valid PersonDTO legalGuardian, + @javax.annotation.Nonnull @Valid Person legalGuardian, @javax.annotation.Nonnull @NotNull @Pattern(regexp = "^\\d{3}-\\d{2}-\\d{4}$") String ssn, @javax.annotation.Nonnull @NotNull @Size(min = 1, max = 3) Set aliases, @javax.annotation.Nullable String telephoneNumber, + @javax.annotation.Nonnull @NotNull @Email String email, @javax.annotation.Nonnull @NotNull @Size(min = 5, max = 50) String trackingCode) { - public PersonDTO( + public Person( @javax.annotation.Nonnull final Name name, @javax.annotation.Nonnull final Integer age, @javax.annotation.Nonnull final GenderEnum gender, @javax.annotation.Nonnull final BigDecimal height, - @javax.annotation.Nonnull final PersonDTO legalGuardian, + @javax.annotation.Nonnull final Person legalGuardian, @javax.annotation.Nonnull final String ssn, @javax.annotation.Nullable final Set aliases, @javax.annotation.Nullable final String telephoneNumber, + @javax.annotation.Nonnull final String email, @javax.annotation.Nullable final String trackingCode) { this.name = name; this.age = age; @@ -216,6 +223,7 @@ public record PersonDTO( this.ssn = ssn; this.aliases = Objects.requireNonNullElse(aliases, new LinkedHashSet<>()); this.telephoneNumber = telephoneNumber; + this.email = email; this.trackingCode = Objects.requireNonNullElse(trackingCode, "utm_source=default"); } diff --git a/pom.xml b/pom.xml index 49f4b202..8ad46b01 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.github.chrimle openapi-to-java-records-mustache-templates - 2.1.1 + 2.2.0 OpenAPI to Java records :: Mustache Templates diff --git a/src/main/resources/api.yaml b/src/main/resources/api.yaml index 7b44ee6d..a664ecc5 100644 --- a/src/main/resources/api.yaml +++ b/src/main/resources/api.yaml @@ -191,6 +191,9 @@ components: stringRequiredPattern: type: string pattern: '^\d{3}-\d{2}-\d{4}$' + stringEmailFormat: + type: string + format: email stringMinLength: type: string minLength: 3 diff --git a/src/main/resources/templates/generateBuilders.mustache b/src/main/resources/templates/generateBuilders.mustache index 53291fc6..42eeceae 100644 --- a/src/main/resources/templates/generateBuilders.mustache +++ b/src/main/resources/templates/generateBuilders.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is a custom template, and is used by `pojo.mustache`. diff --git a/src/main/resources/templates/javadoc.mustache b/src/main/resources/templates/javadoc.mustache index ca0af3ce..a025f519 100644 --- a/src/main/resources/templates/javadoc.mustache +++ b/src/main/resources/templates/javadoc.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is a custom template, and is used by `pojo.mustache` and `modelEnum.mustache`. diff --git a/src/main/resources/templates/licenseInfo.mustache b/src/main/resources/templates/licenseInfo.mustache index c84b3216..416315c4 100644 --- a/src/main/resources/templates/licenseInfo.mustache +++ b/src/main/resources/templates/licenseInfo.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is overriding an official 'openapi-generator-maven-plugin' template. @@ -33,6 +33,6 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ \ No newline at end of file diff --git a/src/main/resources/templates/modelEnum.mustache b/src/main/resources/templates/modelEnum.mustache index 038ad0da..6137e672 100644 --- a/src/main/resources/templates/modelEnum.mustache +++ b/src/main/resources/templates/modelEnum.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is overriding an official 'openapi-generator-maven-plugin' template. diff --git a/src/main/resources/templates/pojo.mustache b/src/main/resources/templates/pojo.mustache index 53a35013..4ae5f366 100644 --- a/src/main/resources/templates/pojo.mustache +++ b/src/main/resources/templates/pojo.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is overriding an official 'openapi-generator-maven-plugin' template. diff --git a/src/main/resources/templates/serializableModel.mustache b/src/main/resources/templates/serializableModel.mustache index b2097661..3862fa90 100644 --- a/src/main/resources/templates/serializableModel.mustache +++ b/src/main/resources/templates/serializableModel.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is a custom template, and is used by `pojo.mustache`. diff --git a/src/main/resources/templates/useBeanValidation.mustache b/src/main/resources/templates/useBeanValidation.mustache index 68f73bde..1f33ddf9 100644 --- a/src/main/resources/templates/useBeanValidation.mustache +++ b/src/main/resources/templates/useBeanValidation.mustache @@ -15,7 +15,7 @@ }}{{! Source: openapi-to-java-records-mustache-templates - Version: 2.1.1 + Version: 2.2.0 This template is a custom template, and is used by `pojo.mustache`. @@ -102,4 +102,7 @@ }}{{/maximum}}{{! }}{{/isLong}}{{! }}{{/isInteger}}{{! + }}{{#isEmail}}{{! + }} @Email{{! + }}{{/isEmail}}{{! }}{{/useBeanValidation}} \ No newline at end of file diff --git a/src/test/java/com/chrimle/example/GeneratedField.java b/src/test/java/com/chrimle/example/GeneratedField.java index 3b85bb33..b5cd8df1 100644 --- a/src/test/java/com/chrimle/example/GeneratedField.java +++ b/src/test/java/com/chrimle/example/GeneratedField.java @@ -22,6 +22,7 @@ * Represents a generated field, along with additional properties which are expected to be true for * the field generated by openapi-generator. * + * @param type of the field. Used for type-safe casting. * @param name of the field * @param type of the field * @param isNullable whether the field should be annotated with {@link jakarta.annotation.Nullable} @@ -29,6 +30,8 @@ * @param isBeanValidationNullable whether the field should be annotated with {@link * jakarta.validation.constraints.NotNull} * @param isCustomClass whether the field should be annotated with {@link jakarta.validation.Valid} + * @param isEmail whether the field should be annotated with {@link + * jakarta.validation.constraints.Email} * @param defaultValue of the field. May be inherited from openapi-generator, or be set explicitly * in the OpenAPI spec. * @param pattern of the field. Set in the OpenAPI spec. @@ -40,7 +43,6 @@ * @param maximum of the field. Set in the OpenAPI spec. * @param decimalMin of the field. Set in the OpenAPI spec. * @param decimalMax of the field. Set in the OpenAPI spec. - * @param type of the field. Used for type-safe casting. * @see Builder for constructing this class with default values */ public record GeneratedField( @@ -49,6 +51,7 @@ public record GeneratedField( boolean isNullable, boolean isBeanValidationNullable, boolean isCustomClass, + boolean isEmail, Optional defaultValue, Optional pattern, Optional minLength, @@ -70,6 +73,7 @@ public static class Builder { private boolean isNullable = false; private boolean isBeanValidationNullable = true; private boolean isCustomClass = false; + private boolean isEmail = false; private Optional defaultValue = Optional.empty(); private Optional pattern = Optional.empty(); private Optional minLength = Optional.empty(); @@ -101,6 +105,11 @@ public Builder isCustomClass(final boolean isCustomClass) { return this; } + public Builder isEmail(final boolean isEmail) { + this.isEmail = isEmail; + return this; + } + public Builder defaultValue(final T defaultValue) { this.defaultValue = Optional.ofNullable(defaultValue); return this; @@ -158,6 +167,7 @@ public GeneratedField build() { isNullable, isBeanValidationNullable, isCustomClass, + isEmail, defaultValue, pattern, minLength, diff --git a/src/test/java/com/chrimle/example/TestSuite.java b/src/test/java/com/chrimle/example/TestSuite.java index 4ceed909..9a8979dc 100644 --- a/src/test/java/com/chrimle/example/TestSuite.java +++ b/src/test/java/com/chrimle/example/TestSuite.java @@ -114,6 +114,7 @@ private static GeneratedSource getGeneratedSourceForGeneratedClass( .isBeanValidationNullable(false) .pattern("^\\d{3}-\\d{2}-\\d{4}$") .build(), + GeneratedField.of("stringEmailFormat", String.class).isEmail(true).build(), GeneratedField.of("stringMinLength", String.class).minLength(3).build(), GeneratedField.of("stringMaxLength", String.class).maxLength(7).build(), GeneratedField.of("stringMinAndMaxLength", String.class) diff --git a/src/test/java/com/chrimle/example/utils/AssertionUtils.java b/src/test/java/com/chrimle/example/utils/AssertionUtils.java index ac8684a7..5f82277e 100644 --- a/src/test/java/com/chrimle/example/utils/AssertionUtils.java +++ b/src/test/java/com/chrimle/example/utils/AssertionUtils.java @@ -21,6 +21,7 @@ import jakarta.validation.Valid; import jakarta.validation.constraints.DecimalMax; import jakarta.validation.constraints.DecimalMin; +import jakarta.validation.constraints.Email; import jakarta.validation.constraints.Max; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotNull; @@ -207,6 +208,12 @@ public static void assertRecordHasFieldsOfTypeWithNullableAnnotations( } else { assertDoesNotHaveAnnotation(classUnderTest, field, decimalMaxAnnotation); } + final Class emailAnnotation = Email.class; + if (generatedField.isEmail()) { + assertHasAnnotation(classUnderTest, field, emailAnnotation); + } else { + assertDoesNotHaveAnnotation(classUnderTest, field, emailAnnotation); + } } } } diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleEnum.java index df6596e7..a6011fd4 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleRecord.java index 9ffeb39e..d93d3304 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnum.java index ad31880f..b3fdca33 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecord.java index c00d9ef7..1bc7688a 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithDefaultFields.java index 23ae7f39..6c1ec893 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java index 545ba53e..46964db5 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java index 78e79ba7..7bfd4801 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithAllConstraints.java index b43ad2be..f1f7bd60 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -40,6 +40,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -63,6 +64,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull String stringRequiredPattern, + @javax.annotation.Nonnull String stringEmailFormat, @javax.annotation.Nonnull String stringMinLength, @javax.annotation.Nonnull String stringMaxLength, @javax.annotation.Nonnull String stringMinAndMaxLength, @@ -86,6 +88,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -107,6 +110,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithInnerEnums.java index d441b7fc..5911aa01 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleEnum.java index c6e59963..31dd336e 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleRecord.java index be8a2431..5a97110f 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnum.java index c2231cee..58ec126a 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecord.java index b8c0c111..44eba821 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithDefaultFields.java index eb9c2929..dc37218a 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java index 9ba97036..6694f2bf 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java index 6ec08e9f..3bf0de9b 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithAllConstraints.java index 7f8c452f..018c20ae 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -40,6 +40,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -66,6 +67,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull String stringRequiredPattern, + @javax.annotation.Nonnull String stringEmailFormat, @javax.annotation.Nonnull String stringMinLength, @javax.annotation.Nonnull String stringMaxLength, @javax.annotation.Nonnull String stringMinAndMaxLength, @@ -89,6 +91,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -110,6 +113,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithInnerEnums.java index fff9ffe9..74a251a6 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleEnum.java index 1c0d6237..9dcfe2c1 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleRecord.java index ba4671c9..532b4b68 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnum.java index ea871b39..373ff6fe 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecord.java index fd6799dd..d6c566d6 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithDefaultFields.java index 5c748354..b6f0fabc 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithNullableFieldsOfEachType.java index bc4fd06c..a6260a1d 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithRequiredFieldsOfEachType.java index 827ff988..8547e5ac 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithAllConstraints.java index a2139b62..7bde4672 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -40,6 +40,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -63,6 +64,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull String stringRequiredPattern, + @javax.annotation.Nonnull String stringEmailFormat, @javax.annotation.Nonnull String stringMinLength, @javax.annotation.Nonnull String stringMaxLength, @javax.annotation.Nonnull String stringMinAndMaxLength, @@ -86,6 +88,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -107,6 +110,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; @@ -133,6 +137,7 @@ public static class Builder { private String stringRequired; private String stringRequiredNullable; private String stringRequiredPattern; + private String stringEmailFormat; private String stringMinLength; private String stringMaxLength; private String stringMinAndMaxLength; @@ -221,6 +226,18 @@ public Builder stringRequiredPattern(final String stringRequiredPattern) { return this; } + /** + * Sets the value of {@link RecordWithAllConstraints#stringEmailFormat }. + * + *

NOTE: Pass-by-reference is used! + * @param stringEmailFormat sets the value of stringEmailFormat + * @return this {@link Builder}-instance for method-chaining + */ + public Builder stringEmailFormat(final String stringEmailFormat) { + this.stringEmailFormat = stringEmailFormat; + return this; + } + /** * Sets the value of {@link RecordWithAllConstraints#stringMinLength }. * @@ -416,6 +433,7 @@ public RecordWithAllConstraints build() { stringRequired, stringRequiredNullable, stringRequiredPattern, + stringEmailFormat, stringMinLength, stringMaxLength, stringMinAndMaxLength, diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithInnerEnums.java index 6c114019..8e855715 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleEnum.java index 930ee0e3..78e1bc2d 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleRecord.java index 7b8d8790..af4e19b2 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnum.java index 86e6db59..265f5c47 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecord.java index dd8fd2de..3ccf0570 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithDefaultFields.java index 93b78a0a..96b590f4 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithNullableFieldsOfEachType.java index dd1678ac..0192590f 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithRequiredFieldsOfEachType.java index 72b608ba..4fc64230 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithAllConstraints.java index b56ddec7..cee10ab5 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -41,6 +41,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -64,6 +65,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull String stringRequiredPattern, + @javax.annotation.Nonnull String stringEmailFormat, @javax.annotation.Nonnull String stringMinLength, @javax.annotation.Nonnull String stringMaxLength, @javax.annotation.Nonnull String stringMinAndMaxLength, @@ -90,6 +92,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -111,6 +114,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithInnerEnums.java index 36272d07..142d4bfe 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleEnum.java index aaf455bc..b11152d4 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleRecord.java index c376ba2f..f5fdfa51 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnum.java index 62dc4cc0..1086b715 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecord.java index 522f3119..42906169 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithDefaultFields.java index da27b08b..0f490121 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithNullableFieldsOfEachType.java index aca89582..74ab7c23 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithRequiredFieldsOfEachType.java index b4ee39c6..bad8e15c 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithAllConstraints.java index 763222cb..785fc47a 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -40,6 +40,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -63,6 +64,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull String stringRequiredPattern, + @javax.annotation.Nonnull String stringEmailFormat, @javax.annotation.Nonnull String stringMinLength, @javax.annotation.Nonnull String stringMaxLength, @javax.annotation.Nonnull String stringMinAndMaxLength, @@ -86,6 +88,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -107,6 +110,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithInnerEnums.java index 2e5a248e..c22c21b0 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleEnum.java index 3e5d9cfb..0a7676fe 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleRecord.java index eda802cd..11d5eeaa 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnum.java index 291a2b16..a196bf13 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecord.java index bdb9044b..4f444c22 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithDefaultFields.java index 5889e0a7..47094806 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithNullableFieldsOfEachType.java index 95f74eb0..80be733e 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithRequiredFieldsOfEachType.java index d0c5b54e..c5f94c1c 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithAllConstraints.java index 78cfc9be..cd5771ac 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -42,6 +42,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -65,6 +66,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull @NotNull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull @NotNull @Pattern(regexp = "^\\d{3}-\\d{2}-\\d{4}$") String stringRequiredPattern, + @javax.annotation.Nonnull @Email String stringEmailFormat, @javax.annotation.Nonnull @Size(min = 3) String stringMinLength, @javax.annotation.Nonnull @Size(max = 7) String stringMaxLength, @javax.annotation.Nonnull @Size(min = 3, max = 7) String stringMinAndMaxLength, @@ -88,6 +90,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -109,6 +112,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithInnerEnums.java index ec3b8d7f..2e234c55 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleEnum.java index e3634a85..e0459369 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleRecord.java index 4a6f441b..6b975ad2 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnum.java index d01892b2..3bb63ce2 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecord.java index dcef1319..4686f517 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithDefaultFields.java index 355e5ddc..bc939a27 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithNullableFieldsOfEachType.java index 93a0a448..5ed64d6d 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithRequiredFieldsOfEachType.java index 7385e889..a23cf76e 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithAllConstraints.java index d503db34..5a78e48b 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -40,6 +40,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -63,6 +64,7 @@ public record RecordWithAllConstraints( @javax.annotation.Nonnull String stringRequired, @javax.annotation.Nullable String stringRequiredNullable, @javax.annotation.Nonnull String stringRequiredPattern, + @javax.annotation.Nonnull String stringEmailFormat, @javax.annotation.Nonnull String stringMinLength, @javax.annotation.Nonnull String stringMaxLength, @javax.annotation.Nonnull String stringMinAndMaxLength, @@ -86,6 +88,7 @@ public RecordWithAllConstraints( @javax.annotation.Nonnull final String stringRequired, @javax.annotation.Nullable final String stringRequiredNullable, @javax.annotation.Nonnull final String stringRequiredPattern, + @javax.annotation.Nonnull final String stringEmailFormat, @javax.annotation.Nonnull final String stringMinLength, @javax.annotation.Nonnull final String stringMaxLength, @javax.annotation.Nonnull final String stringMinAndMaxLength, @@ -107,6 +110,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithInnerEnums.java index 4fed0b36..e9938236 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleEnum.java index a9b96fce..92925e86 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleRecord.java index 933ef933..dd1d84db 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/DeprecatedExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnum.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnum.java index ccaa9fbc..8edd82e9 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnum.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnum.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecord.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecord.java index 5d5d9b8f..7c3f0f4a 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecord.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecord.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithDefaultFields.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithDefaultFields.java index d50cd908..1432904e 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithDefaultFields.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithDefaultFields.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithNullableFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithNullableFieldsOfEachType.java index fe8c2b00..610625ed 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithNullableFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithNullableFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithRequiredFieldsOfEachType.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithRequiredFieldsOfEachType.java index a018218c..5da37bd4 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithRequiredFieldsOfEachType.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithRequiredFieldsOfEachType.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithAllConstraints.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithAllConstraints.java index 8dc04a1e..85c22128 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithAllConstraints.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithAllConstraints.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */ @@ -40,6 +40,7 @@ * @param stringRequired String * @param stringRequiredNullable String * @param stringRequiredPattern String + * @param stringEmailFormat String * @param stringMinLength String * @param stringMaxLength String * @param stringMinAndMaxLength String @@ -63,6 +64,7 @@ public record RecordWithAllConstraints( @jakarta.annotation.Nonnull String stringRequired, @jakarta.annotation.Nullable String stringRequiredNullable, @jakarta.annotation.Nonnull String stringRequiredPattern, + @jakarta.annotation.Nonnull String stringEmailFormat, @jakarta.annotation.Nonnull String stringMinLength, @jakarta.annotation.Nonnull String stringMaxLength, @jakarta.annotation.Nonnull String stringMinAndMaxLength, @@ -86,6 +88,7 @@ public RecordWithAllConstraints( @jakarta.annotation.Nonnull final String stringRequired, @jakarta.annotation.Nullable final String stringRequiredNullable, @jakarta.annotation.Nonnull final String stringRequiredPattern, + @jakarta.annotation.Nonnull final String stringEmailFormat, @jakarta.annotation.Nonnull final String stringMinLength, @jakarta.annotation.Nonnull final String stringMaxLength, @jakarta.annotation.Nonnull final String stringMinAndMaxLength, @@ -107,6 +110,7 @@ public RecordWithAllConstraints( this.stringRequired = stringRequired; this.stringRequiredNullable = stringRequiredNullable; this.stringRequiredPattern = stringRequiredPattern; + this.stringEmailFormat = stringEmailFormat; this.stringMinLength = stringMinLength; this.stringMaxLength = stringMaxLength; this.stringMinAndMaxLength = stringMinAndMaxLength; diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithInnerEnums.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithInnerEnums.java index ae8cd37a..3a2fb330 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithInnerEnums.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/RecordWithInnerEnums.java @@ -12,7 +12,7 @@ * openapi-to-java-records-mustache-templates. For further information, * questions, requesting features or reporting issues, please visit: * https://github.com/Chrimle/openapi-to-java-records-mustache-templates. - * Generated with Version: 2.1.1 + * Generated with Version: 2.2.0 * */