diff --git a/README.md b/README.md index bb5a7cdc..46e06960 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.3.0 + 2.4.0 ``` diff --git a/docs/index.md b/docs/index.md index 8ea9ae7f..c49ad32b 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.3.0 + 2.4.0 ``` diff --git a/pom.xml b/pom.xml index 55e8ca0f..cc897d85 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.github.chrimle openapi-to-java-records-mustache-templates - 2.3.0 + 2.4.0 OpenAPI to Java records :: Mustache Templates diff --git a/src/main/java/io/github/chrimle/example/annotations/TestFieldExtraAnnotationOne.java b/src/main/java/io/github/chrimle/example/annotations/TestFieldExtraAnnotationOne.java new file mode 100644 index 00000000..90ca6dc4 --- /dev/null +++ b/src/main/java/io/github/chrimle/example/annotations/TestFieldExtraAnnotationOne.java @@ -0,0 +1,26 @@ +/* + Copyright 2024 Chrimle + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ +package io.github.chrimle.example.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface TestFieldExtraAnnotationOne {} diff --git a/src/main/java/io/github/chrimle/example/annotations/TestFieldExtraAnnotationTwo.java b/src/main/java/io/github/chrimle/example/annotations/TestFieldExtraAnnotationTwo.java new file mode 100644 index 00000000..77a65677 --- /dev/null +++ b/src/main/java/io/github/chrimle/example/annotations/TestFieldExtraAnnotationTwo.java @@ -0,0 +1,26 @@ +/* + Copyright 2024 Chrimle + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ +package io.github.chrimle.example.annotations; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface TestFieldExtraAnnotationTwo {} diff --git a/src/main/resources/api.yaml b/src/main/resources/api.yaml index 2900af74..b85c4d6b 100644 --- a/src/main/resources/api.yaml +++ b/src/main/resources/api.yaml @@ -125,7 +125,14 @@ components: properties: field1: type: boolean - description: a boolean field + description: a boolean field with an extra field annotation + x-field-extra-annotation: '@io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne' + field2: + type: boolean + description: a boolean field with two extra field annotations + x-field-extra-annotation: |- + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo ExampleRecordWithTwoExtraAnnotations: type: object description: Example of a Record with two extra annotations diff --git a/src/main/resources/templates/generateBuilders.mustache b/src/main/resources/templates/generateBuilders.mustache index eaa3e543..d3df84b7 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.3.0 + Version: 2.4.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 e67d8627..401fb040 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.3.0 + Version: 2.4.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 452f9147..5b6ce60e 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.3.0 + Version: 2.4.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.3.0 + * Generated with Version: 2.4.0 * */ \ No newline at end of file diff --git a/src/main/resources/templates/modelEnum.mustache b/src/main/resources/templates/modelEnum.mustache index 05c6d6bb..3ad4f49f 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.3.0 + Version: 2.4.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 f486b647..36ba8522 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.3.0 + Version: 2.4.0 This template is overriding an official 'openapi-generator-maven-plugin' template. @@ -34,7 +34,11 @@ }}{{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}}{{! }}public record {{classname}}( - {{#vars}}@{{javaxPackage}}.annotation.{{#isNullable}}Nullable{{/isNullable}}{{^isNullable}}Nonnull{{/isNullable}}{{>useBeanValidation}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, + {{#vars}}{{! + }}{{#vendorExtensions.x-field-extra-annotation}}{{! + }}{{vendorExtensions.x-field-extra-annotation}} + {{/vendorExtensions.x-field-extra-annotation}}{{! + }}@{{javaxPackage}}.annotation.{{#isNullable}}Nullable{{/isNullable}}{{^isNullable}}Nonnull{{/isNullable}}{{>useBeanValidation}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vars}}{{^serializableModel}}){{/serializableModel}}{{#serializableModel}} ) implements Serializable{{/serializableModel}} { {{>serializableModel}} diff --git a/src/main/resources/templates/serializableModel.mustache b/src/main/resources/templates/serializableModel.mustache index db65b653..30d85e70 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.3.0 + Version: 2.4.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 5fe35f91..07735098 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.3.0 + Version: 2.4.0 This template is a custom template, and is used by `pojo.mustache`. diff --git a/src/test/java/io/github/chrimle/example/models/GeneratedField.java b/src/test/java/io/github/chrimle/example/models/GeneratedField.java index bb36d52a..16f31cde 100644 --- a/src/test/java/io/github/chrimle/example/models/GeneratedField.java +++ b/src/test/java/io/github/chrimle/example/models/GeneratedField.java @@ -16,6 +16,9 @@ */ package io.github.chrimle.example.models; +import java.lang.annotation.Annotation; +import java.util.ArrayList; +import java.util.List; import java.util.Optional; /** @@ -32,6 +35,7 @@ * @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 enumValue of the enum constant. Meant for enum classes only. * @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. @@ -43,6 +47,7 @@ * @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 extraFieldAnnotations of the field. Set in the OpenAPI spec. * @see Builder for constructing this class with default values */ public record GeneratedField( @@ -62,7 +67,8 @@ public record GeneratedField( Optional minimum, Optional maximum, Optional decimalMin, - Optional decimalMax) { + Optional decimalMax, + List> extraFieldAnnotations) { public static Builder of(final String name, final Class type) { return new Builder<>(name, type, null); @@ -90,6 +96,7 @@ public static class Builder { private Optional maximum = Optional.empty(); private Optional decimalMin = Optional.empty(); private Optional decimalMax = Optional.empty(); + private final List> extraFieldAnnotations = new ArrayList<>(); public Builder(final String name, final Class type, final T enumValue) { this.name = name; @@ -172,6 +179,13 @@ public Builder decimalMax(final String decimalMax) { return this; } + @SafeVarargs + public final Builder withExtraFieldAnnotations( + final Class... annotations) { + this.extraFieldAnnotations.addAll(List.of(annotations)); + return this; + } + public GeneratedField build() { return new GeneratedField<>( name, @@ -190,7 +204,8 @@ public GeneratedField build() { minimum, maximum, decimalMin, - decimalMax); + decimalMax, + extraFieldAnnotations); } } } diff --git a/src/test/java/io/github/chrimle/example/models/GeneratedRecord.java b/src/test/java/io/github/chrimle/example/models/GeneratedRecord.java index a1084e44..3b1d9f2c 100644 --- a/src/test/java/io/github/chrimle/example/models/GeneratedRecord.java +++ b/src/test/java/io/github/chrimle/example/models/GeneratedRecord.java @@ -19,6 +19,8 @@ import io.github.chrimle.example.PluginExecution; import io.github.chrimle.example.annotations.TestExtraAnnotation; import io.github.chrimle.example.annotations.TestExtraAnnotationTwo; +import io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne; +import io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo; import java.lang.annotation.Annotation; import java.math.BigDecimal; import java.util.List; @@ -43,7 +45,13 @@ public enum GeneratedRecord implements GeneratedClass { "ExampleRecordWithOneExtraAnnotation", false, List.of(TestExtraAnnotation.class), - GeneratedField.of("field1", Boolean.class).build()), + GeneratedField.of("field1", Boolean.class) + .withExtraFieldAnnotations(TestFieldExtraAnnotationOne.class) + .build(), + GeneratedField.of("field2", Boolean.class) + .withExtraFieldAnnotations( + TestFieldExtraAnnotationOne.class, TestFieldExtraAnnotationTwo.class) + .build()), EXAMPLE_RECORD_WITH_TWO_EXTRA_ANNOTATIONS( "ExampleRecordWithTwoExtraAnnotations", false, diff --git a/src/test/java/io/github/chrimle/example/tests/GeneratedRecordTests.java b/src/test/java/io/github/chrimle/example/tests/GeneratedRecordTests.java index 9bfd298a..700d8d04 100644 --- a/src/test/java/io/github/chrimle/example/tests/GeneratedRecordTests.java +++ b/src/test/java/io/github/chrimle/example/tests/GeneratedRecordTests.java @@ -17,11 +17,7 @@ package io.github.chrimle.example.tests; import io.github.chrimle.example.GeneratedSource; -import io.github.chrimle.example.annotations.TestAnnotationOne; -import io.github.chrimle.example.annotations.TestAnnotationThree; -import io.github.chrimle.example.annotations.TestAnnotationTwo; -import io.github.chrimle.example.annotations.TestExtraAnnotation; -import io.github.chrimle.example.annotations.TestExtraAnnotationTwo; +import io.github.chrimle.example.annotations.*; import io.github.chrimle.example.models.GeneratedField; import io.github.chrimle.example.tests.GeneratedRecordTests.GeneratorConfigurationTests.ConfigOptionsTests; import io.github.chrimle.example.tests.GeneratedRecordTests.GeneratorConfigurationTests.ConfigOptionsTests.AdditionalModelTypeAnnotationsTests; @@ -34,6 +30,7 @@ import io.github.chrimle.example.tests.GeneratedRecordTests.OpenAPITests.SchemaTests.PropertiesTests.PropertyTests; import io.github.chrimle.example.tests.GeneratedRecordTests.OpenAPITests.SchemaTests.PropertiesTests.PropertyTests.DefaultTests; import io.github.chrimle.example.tests.GeneratedRecordTests.OpenAPITests.SchemaTests.PropertiesTests.PropertyTests.NullableTests; +import io.github.chrimle.example.tests.GeneratedRecordTests.OpenAPITests.SchemaTests.PropertiesTests.PropertyTests.XFieldExtraAnnotationTests; import io.github.chrimle.example.tests.GeneratedRecordTests.OpenAPITests.SchemaTests.TypeTests; import io.github.chrimle.example.tests.GeneratedRecordTests.OpenAPITests.SchemaTests.XClassExtraAnnotationTests; import io.github.chrimle.example.utils.AssertionUtils; @@ -72,6 +69,8 @@ *
  • {@link PropertyTests `components.schemas.{schema}.properties.{property}`} *
  • {@link NullableTests `components.schemas.{schema}.properties.{property}.nullable`} *
  • {@link DefaultTests `components.schemas.{schema}.properties.{property}.default`} + *
  • {@link XFieldExtraAnnotationTests + * `components.schemas.{schema}.properties.{property}.x-field-extra-annotation`} * * *

    `openapi-generator` Configurations @@ -283,6 +282,70 @@ public void whenPropertyHasNullableSetThenFieldIsAnnotatedWithNullableOrNonnull( } } } + + @Nested + @DisplayName("Testing `{schema}.properties.{property}.x-field-extra-annotation`") + class XFieldExtraAnnotationTests { + + @Nested + @DisplayName( + "Testing `{schema}.properties.{property}.x-field-extra-annotation: `") + class XFieldExtraAnnotationUnsetTests { + + @ParameterizedTest + @MethodSource(GENERATED_RECORD_TESTS_METHOD_SOURCE) + @DisplayName("Generated `field` is NOT annotated with extra field annotations`") + public void + whenXFieldExtraAnnotationIsUnsetThenFieldIsNotAnnotatedWithExtraFieldAnnotation( + final GeneratedSource generatedSource) { + for (final GeneratedField generatedField : generatedSource.generatedFields()) { + final Field field = + AssertionUtils.assertRecordHasField( + generatedSource.getClassUnderTest(), + generatedField.name(), + generatedField.type()); + if (generatedField.extraFieldAnnotations().isEmpty()) { + AssertionUtils.assertDoesNotHaveAnnotation( + generatedSource.getClassUnderTest(), + field, + TestFieldExtraAnnotationOne.class); + AssertionUtils.assertDoesNotHaveAnnotation( + generatedSource.getClassUnderTest(), + field, + TestFieldExtraAnnotationTwo.class); + } + } + } + } + + @Nested + @DisplayName( + "Testing `{schema}.properties.{property}.x-field-extra-annotation: @TestFieldExtraAnnotationOne, @TestFieldExtraAnnotationTwo`") + class XFieldExtraAnnotationSetTests { + + @ParameterizedTest + @MethodSource(GENERATED_RECORD_TESTS_METHOD_SOURCE) + @DisplayName("Generated `field` is annotated with extra field annotations`") + public void + whenXFieldExtraAnnotationIsSetThenFieldIsAnnotatedWithExtraFieldAnnotation( + final GeneratedSource generatedSource) { + for (final GeneratedField generatedField : generatedSource.generatedFields()) { + final Field field = + AssertionUtils.assertRecordHasField( + generatedSource.getClassUnderTest(), + generatedField.name(), + generatedField.type()); + if (!generatedField.extraFieldAnnotations().isEmpty()) { + for (final Class expectedAnnotation : + generatedField.extraFieldAnnotations()) { + AssertionUtils.assertHasAnnotation( + generatedSource.getClassUnderTest(), field, expectedAnnotation); + } + } + } + } + } + } } } } 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 7464123b..15968598 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.3.0 + * Generated with Version: 2.4.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 2e7070a2..ab42d198 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.3.0 + * Generated with Version: 2.4.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 9f2e4a8d..67f889c5 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnumWithIntegerValues.java index 12d5bb69..37d23763 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 cc0555e1..d823610c 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.3.0 + * Generated with Version: 2.4.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 b2bf8c27..f17d85c3 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.3.0 + * Generated with Version: 2.4.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 d22885b2..28aa811e 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithOneExtraAnnotation.java index 691aae86..ee4b09dd 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -30,14 +30,21 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 92b09591..b860c86a 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.java index 9ecc78f9..5a95e3bf 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalEnumTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 89a4fec1..81722464 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.3.0 + * Generated with Version: 2.4.0 * */ 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 3f48fcb1..75c45611 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.3.0 + * Generated with Version: 2.4.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 18270945..77a725c0 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.3.0 + * Generated with Version: 2.4.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 7a1dd1f8..f7ab0b48 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.3.0 + * Generated with Version: 2.4.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 b4dd5ad5..d56f66fe 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnumWithIntegerValues.java index fca03e6e..45347ade 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 41e5caa2..ac6dd8b0 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.3.0 + * Generated with Version: 2.4.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 a94fd023..ba562486 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.3.0 + * Generated with Version: 2.4.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 12bb09b4..454f02d5 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithOneExtraAnnotation.java index 1750cea5..2fe07f7c 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -30,17 +30,24 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestAnnotationOne @io.github.chrimle.example.annotations.TestAnnotationTwo @io.github.chrimle.example.annotations.TestAnnotationThree @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 153c9649..f1a29538 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.java index 8c1e069b..7f359b7c 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/additionalModelTypeAnnotations/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 ecbac3bd..cb7c2bfe 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.3.0 + * Generated with Version: 2.4.0 * */ 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 dad2152c..77027e4d 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.3.0 + * Generated with Version: 2.4.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 172b7619..5be0766a 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.3.0 + * Generated with Version: 2.4.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 0e1f5ab1..52a25b6c 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.3.0 + * Generated with Version: 2.4.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 9d8c198f..c342bbb9 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnumWithIntegerValues.java index a0ac5562..58841651 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 e9c33525..0b9db01b 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.3.0 + * Generated with Version: 2.4.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 14185699..5c85adb0 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.3.0 + * Generated with Version: 2.4.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 70f4d81f..98df176d 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithOneExtraAnnotation.java index 26fda56a..9f9e0706 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -30,27 +30,35 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } /** Builder class for {@link ExampleRecordWithOneExtraAnnotation } */ public static class Builder { private Boolean field1; + private Boolean field2; /** * Sets the value of {@link ExampleRecordWithOneExtraAnnotation#field1 }. * *

    NOTE: Pass-by-reference is used! - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation * @return this {@link Builder}-instance for method-chaining */ public Builder field1(final Boolean field1) { @@ -58,6 +66,18 @@ public Builder field1(final Boolean field1) { return this; } + /** + * Sets the value of {@link ExampleRecordWithOneExtraAnnotation#field2 }. + * + *

    NOTE: Pass-by-reference is used! + * @param field2 a boolean field with two extra field annotations + * @return this {@link Builder}-instance for method-chaining + */ + public Builder field2(final Boolean field2) { + this.field2 = field2; + return this; + } + /** * Builds a {@link ExampleRecordWithOneExtraAnnotation }-instance with the values provided in preceding * builder methods. @@ -67,7 +87,8 @@ public Builder field1(final Boolean field1) { */ public ExampleRecordWithOneExtraAnnotation build() { return new ExampleRecordWithOneExtraAnnotation( - field1 + field1, + field2 ); } } 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 1d6481c3..b516a9e8 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithTwoExtraAnnotations.java index c6d5a73e..d4b239ae 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/generateBuilders/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 ca736f7a..5fb5d9d1 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.3.0 + * Generated with Version: 2.4.0 * */ 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 2b7ce663..e1b9392c 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.3.0 + * Generated with Version: 2.4.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 a683c41c..0559294e 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.3.0 + * Generated with Version: 2.4.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 b0834449..2cb2275c 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.3.0 + * Generated with Version: 2.4.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 f7fdc594..5aa5bd6e 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnumWithIntegerValues.java index 2d98adcd..e425f559 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 ff3fa871..e8a603df 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.3.0 + * Generated with Version: 2.4.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 5a4f29dd..8ebaf592 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.3.0 + * Generated with Version: 2.4.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 f5dc9094..7871e5dd 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithOneExtraAnnotation.java index 08a64cf4..46e2d349 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -31,17 +31,24 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1 + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2 ) implements Serializable { private static final long serialVersionUID = 1L; public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 ab56b8b7..5a78ea2a 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithTwoExtraAnnotations.java index ddadec90..6e3b4c72 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/serializableModel/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 6f222582..8fc110cf 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.3.0 + * Generated with Version: 2.4.0 * */ 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 8dc6b898..d804fd44 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.3.0 + * Generated with Version: 2.4.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 ebcc8c4f..87dde029 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.3.0 + * Generated with Version: 2.4.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 97e7b026..01f1911e 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.3.0 + * Generated with Version: 2.4.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 5341f325..0ef99147 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnumWithIntegerValues.java index c0a8c8b4..1d2c202a 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 6dea05ae..88b2d157 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.3.0 + * Generated with Version: 2.4.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 030bc5f3..6c343fff 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.3.0 + * Generated with Version: 2.4.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 53a1d7c6..8d46d3fe 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithOneExtraAnnotation.java index afac3132..6cfc24b2 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -30,14 +30,21 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 fd9ace0c..8eaf488d 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithTwoExtraAnnotations.java index a014684e..82001002 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/standard/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 f83841a3..bd84e3a5 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.3.0 + * Generated with Version: 2.4.0 * */ 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 77115396..131cbd7d 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.3.0 + * Generated with Version: 2.4.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 aeb68662..bb8f76a1 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.3.0 + * Generated with Version: 2.4.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 e4b80556..8af249dc 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.3.0 + * Generated with Version: 2.4.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 096640b5..01508dc5 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnumWithIntegerValues.java index 1d789de9..87f190a5 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 84a1b251..9d14fb43 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.3.0 + * Generated with Version: 2.4.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 eb5c33db..94e5d010 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.3.0 + * Generated with Version: 2.4.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 c0837606..89e5cc7c 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithOneExtraAnnotation.java index de10f0b4..d087476d 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -32,14 +32,21 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 609d18b3..17ad9a31 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithTwoExtraAnnotations.java index 75dce8c4..834ce410 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useBeanValidation/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 b1926f18..0dd90abb 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.3.0 + * Generated with Version: 2.4.0 * */ 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 3e610a48..11855b0c 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.3.0 + * Generated with Version: 2.4.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 efa321e1..77d99e37 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.3.0 + * Generated with Version: 2.4.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 7d0ddde9..b0cb6484 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.3.0 + * Generated with Version: 2.4.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 8f75b373..bc7ea7fd 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnumWithIntegerValues.java index 87742bd4..5c49bc09 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 b6d970c2..88bf8378 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.3.0 + * Generated with Version: 2.4.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 29a09cb2..7df7713d 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.3.0 + * Generated with Version: 2.4.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 08e133a7..25f3a154 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithOneExtraAnnotation.java index 34dd7dcb..69530913 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -30,14 +30,21 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @javax.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @javax.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @javax.annotation.Nonnull final Boolean field1) { + @javax.annotation.Nonnull final Boolean field1, + @javax.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 e38a6857..77f2ef84 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithTwoExtraAnnotations.java index 438d2d61..12a581ea 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useEnumCaseInsensitive/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 b041ab0f..ae43f135 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.3.0 + * Generated with Version: 2.4.0 * */ 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 9ce528bd..becc46d0 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.3.0 + * Generated with Version: 2.4.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 4a989188..3a66cb2a 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.3.0 + * Generated with Version: 2.4.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 0ca462d8..53e54079 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.3.0 + * Generated with Version: 2.4.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 e84c977d..5b6f262b 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnumWithIntegerValues.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnumWithIntegerValues.java index 6fa8e8e6..0326c21d 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnumWithIntegerValues.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleEnumWithIntegerValues.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.3.0 + * Generated with Version: 2.4.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 aeb11f82..eadb8374 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.3.0 + * Generated with Version: 2.4.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 ea105707..7532992d 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.3.0 + * Generated with Version: 2.4.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 44c3e03b..d0d8dd3b 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithOneExtraAnnotation.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithOneExtraAnnotation.java index d836a08c..8d7b5c44 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithOneExtraAnnotation.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithOneExtraAnnotation.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.3.0 + * Generated with Version: 2.4.0 * */ @@ -30,14 +30,21 @@ /** * Example of a Record with an extra annotation * - * @param field1 a boolean field + * @param field1 a boolean field with an extra field annotation + * @param field2 a boolean field with two extra field annotations */ @io.github.chrimle.example.annotations.TestExtraAnnotation public record ExampleRecordWithOneExtraAnnotation( - @jakarta.annotation.Nonnull Boolean field1) { + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne + @jakarta.annotation.Nonnull Boolean field1, + @io.github.chrimle.example.annotations.TestFieldExtraAnnotationOne +@io.github.chrimle.example.annotations.TestFieldExtraAnnotationTwo + @jakarta.annotation.Nonnull Boolean field2) { public ExampleRecordWithOneExtraAnnotation( - @jakarta.annotation.Nonnull final Boolean field1) { + @jakarta.annotation.Nonnull final Boolean field1, + @jakarta.annotation.Nonnull final Boolean field2) { this.field1 = field1; + this.field2 = field2; } } 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 bdf2f909..d4d6061e 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.3.0 + * Generated with Version: 2.4.0 * */ diff --git a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithTwoExtraAnnotations.java b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithTwoExtraAnnotations.java index 56e3e9fc..e45cc3a7 100644 --- a/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithTwoExtraAnnotations.java +++ b/target/generated-sources/openapi/src/src/gen/java/main/io/github/chrimle/example/useJakartaEe/ExampleRecordWithTwoExtraAnnotations.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.3.0 + * Generated with Version: 2.4.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 9c2b0c59..fc13ff3e 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.3.0 + * Generated with Version: 2.4.0 * */ 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 fdbf34d1..7d0355c1 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.3.0 + * Generated with Version: 2.4.0 * */