From db4ce21295259fb8318f98a4edfa3a04d2148f8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 20 Dec 2025 17:59:52 +0000 Subject: [PATCH 1/2] chore(deps): Bump io-swagger-core-v3 from 2.2.40 to 2.2.41 Bumps `io-swagger-core-v3` from 2.2.40 to 2.2.41. Updates `io.swagger.core.v3:swagger-annotations` from 2.2.40 to 2.2.41 Updates `io.swagger.core.v3:swagger-annotations-jakarta` from 2.2.40 to 2.2.41 Updates `io.swagger.core.v3:swagger-core-jakarta` from 2.2.40 to 2.2.41 Updates `io.swagger.core.v3:swagger-models-jakarta` from 2.2.40 to 2.2.41 --- updated-dependencies: - dependency-name: io.swagger.core.v3:swagger-annotations dependency-version: 2.2.41 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.swagger.core.v3:swagger-annotations-jakarta dependency-version: 2.2.41 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.swagger.core.v3:swagger-core-jakarta dependency-version: 2.2.41 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.swagger.core.v3:swagger-models-jakarta dependency-version: 2.2.41 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4410907eb..34ef70ed2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,7 +5,7 @@ docker-spring-boot = "10.0.0" gradle-nexus-publish-plugin = "2.0.0" io-awspring-cloud = "4.0.0" io-confluent = "8.2.0" -io-swagger-core-v3 = "2.2.40" +io-swagger-core-v3 = "2.2.41" jackson-core = "2.21.1" kotlin = "2.3.10" node-plugin = "7.1.0" From 498bf55bb23477e217ad6d4fda0c5b281d109bfe Mon Sep 17 00:00:00 2001 From: Timon Back Date: Sun, 8 Mar 2026 23:45:16 +0100 Subject: [PATCH 2/2] fix(core): set schema title for cached and new schemas Follow up to the fix in swagger-core 2.2.41, which fixed the annotation type caching --- .../converters/SchemaTitleModelConverter.java | 28 +-- ...faultComponentsServiceIntegrationTest.java | 1 + .../SchemaTitleModelConverterTest.java | 184 ++++++++++++++++++ .../application/asyncapi.polymorphic.json | 2 + .../schemas/json/annotation-definitions.json | 2 + .../schemas/json/array-definitions.json | 1 + .../schemas/json/complex-definitions.json | 3 + .../resources/schemas/json/definitions.json | 1 + .../schemas/json/documented-definitions.json | 3 + .../json/generics-wrapper-definitions.json | 1 + .../schemas/json/json-type-definitions.json | 2 + .../xml/annotation-definitions-xml.json | 2 + .../schemas/xml/array-definitions-xml.json | 1 + ...mplex-definitions-with-attributes-xml.json | 3 + .../schemas/xml/complex-definitions-xml.json | 3 + .../schemas/xml/definitions-xml.json | 1 + .../xml/documented-definitions-xml.json | 3 + .../xml/generics-wrapper-definitions-xml.json | 1 + .../yaml/annotation-definitions-yaml.json | 2 + .../schemas/yaml/array-definitions-yaml.json | 1 + .../yaml/complex-definitions-yaml.json | 3 + .../schemas/yaml/definitions-yaml.json | 1 + .../yaml/documented-definitions-yaml.json | 3 + .../generics-wrapper-definitions-yaml.json | 1 + .../yaml/json-type-definitions-yaml.json | 2 + .../src/test/resources/asyncapi.json | 1 + .../src/test/resources/asyncapi.yaml | 1 + .../src/test/resources/asyncapi.json | 1 + .../src/test/resources/asyncapi.json | 1 + .../src/test/resources/asyncapi.json | 26 +++ .../test/resources/asyncapi.openapiv31.json | 28 ++- .../src/test/resources/asyncapi.yaml | 26 +++ .../src/test/resources/groups/vehicles.json | 8 + .../src/test/resources/asyncapi.json | 3 + .../src/test/resources/asyncapi.json | 1 + .../src/test/resources/asyncapi.json | 1 + 36 files changed, 331 insertions(+), 21 deletions(-) create mode 100644 springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverterTest.java diff --git a/springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverter.java b/springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverter.java index ad3e9e53d..a6900cac2 100644 --- a/springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverter.java +++ b/springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverter.java @@ -18,20 +18,24 @@ public class SchemaTitleModelConverter implements ModelConverter { @Override public Schema resolve(AnnotatedType type, ModelConverterContext context, Iterator chain) { + if (!chain.hasNext()) return null; + + Schema schema = chain.next().resolve(type, context, chain); + if (schema == null) return null; + JavaType javaType = Json.mapper().constructType(type.getType()); - if (chain.hasNext()) { - Schema schema = chain.next().resolve(type, context, chain); - boolean isPrimitiveType = PrimitiveType.createProperty(type.getType()) != null; - if (schema != null && !isPrimitiveType) { - if (schema.get$ref() != null) { - Schema definedModel = context.resolve(type); - if (definedModel != null && definedModel.getTitle() == null) { - definedModel.setTitle(javaType.getRawClass().getSimpleName()); - } - } + boolean isPrimitiveType = PrimitiveType.createProperty(type.getType()) != null; + if (isPrimitiveType) return schema; + + if (schema.get$ref() != null) { + Schema definedModel = context.resolve(type); + if (definedModel != null && definedModel.getTitle() == null) { + definedModel.setTitle(javaType.getRawClass().getSimpleName()); } - return schema; + } else if (schema.getTitle() == null) { + schema.setTitle(javaType.getRawClass().getSimpleName()); } - return null; + + return schema; } } diff --git a/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/components/DefaultComponentsServiceIntegrationTest.java b/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/components/DefaultComponentsServiceIntegrationTest.java index 91a59af8e..40deb8d9a 100644 --- a/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/components/DefaultComponentsServiceIntegrationTest.java +++ b/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/components/DefaultComponentsServiceIntegrationTest.java @@ -87,6 +87,7 @@ void getArraySchemas() { "array", ComponentSchema.of(SchemaObject.builder() .type(Set.of(SchemaType.ARRAY.getValue())) + .title("List") .items(ComponentSchema.of(SchemaObject.builder() .type(Set.of(SchemaType.STRING.getValue())) .description("items description") diff --git a/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverterTest.java b/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverterTest.java new file mode 100644 index 000000000..31d54677f --- /dev/null +++ b/springwolf-core/src/test/java/io/github/springwolf/core/asyncapi/schemas/converters/SchemaTitleModelConverterTest.java @@ -0,0 +1,184 @@ +// SPDX-License-Identifier: Apache-2.0 +package io.github.springwolf.core.asyncapi.schemas.converters; + +import io.swagger.v3.core.converter.AnnotatedType; +import io.swagger.v3.core.converter.ModelConverter; +import io.swagger.v3.core.converter.ModelConverterContext; +import io.swagger.v3.oas.models.media.Schema; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import java.util.Collections; +import java.util.Iterator; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +class SchemaTitleModelConverterTest { + + private final SchemaTitleModelConverter converter = new SchemaTitleModelConverter(); + + private ModelConverterContext context; + + @BeforeEach + void setUp() { + context = mock(ModelConverterContext.class); + } + + @Test + void returnsNullWhenChainIsEmpty() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + Iterator emptyChain = Collections.emptyIterator(); + + // when + Schema result = converter.resolve(type, context, emptyChain); + + // then + assertThat(result).isNull(); + } + + @Test + void returnsNullWhenChainReturnsNull() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(null); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isNull(); + } + + @Test + void returnsSchemaWithoutModificationForPrimitiveType() { + // given - int is a primitive type recognized by PrimitiveType.createProperty + AnnotatedType type = new AnnotatedType(Integer.class); + Schema primitiveSchema = new Schema<>(); + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(primitiveSchema); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isSameAs(primitiveSchema); + assertThat(result.getTitle()).isNull(); + } + + @Test + void setsTitleOnSchemaWithoutRefForComplexType() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + Schema schema = new Schema<>(); + // no $ref, no title set + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(schema); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isSameAs(schema); + assertThat(result.getTitle()).isEqualTo("SimpleClass"); + } + + @Test + void doesNotOverwriteExistingTitleOnSchema() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + Schema schema = new Schema<>(); + schema.setTitle("ExistingTitle"); + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(schema); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isSameAs(schema); + assertThat(result.getTitle()).isEqualTo("ExistingTitle"); + } + + @Test + void setsTitleOnDefinedModelWhenSchemaHasRef() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + Schema schemaWithRef = new Schema<>(); + schemaWithRef.set$ref("#/components/schemas/SimpleClass"); + Schema definedModel = new Schema<>(); + // definedModel has no title yet + + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(schemaWithRef); + when(context.resolve(type)).thenReturn(definedModel); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isSameAs(schemaWithRef); + assertThat(definedModel.getTitle()).isEqualTo("SimpleClass"); + } + + @Test + void doesNotOverwriteExistingTitleOnDefinedModelWhenSchemaHasRef() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + Schema schemaWithRef = new Schema<>(); + schemaWithRef.set$ref("#/components/schemas/SimpleClass"); + Schema definedModel = new Schema<>(); + definedModel.setTitle("ExistingTitle"); + + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(schemaWithRef); + when(context.resolve(type)).thenReturn(definedModel); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isSameAs(schemaWithRef); + assertThat(definedModel.getTitle()).isEqualTo("ExistingTitle"); + } + + @Test + void doesNotSetTitleWhenDefinedModelIsNullForRefSchema() { + // given + AnnotatedType type = new AnnotatedType(SimpleClass.class); + Schema schemaWithRef = new Schema<>(); + schemaWithRef.set$ref("#/components/schemas/SimpleClass"); + + ModelConverter nextConverter = mock(ModelConverter.class); + when(nextConverter.resolve(any(), any(), any())).thenReturn(schemaWithRef); + when(context.resolve(type)).thenReturn(null); + Iterator chain = + Collections.singletonList(nextConverter).iterator(); + + // when + Schema result = converter.resolve(type, context, chain); + + // then + assertThat(result).isSameAs(schemaWithRef); + } + + static class SimpleClass { + public String name; + } +} diff --git a/springwolf-core/src/test/resources/application/asyncapi.polymorphic.json b/springwolf-core/src/test/resources/application/asyncapi.polymorphic.json index 3b75b4085..bddec953c 100644 --- a/springwolf-core/src/test/resources/application/asyncapi.polymorphic.json +++ b/springwolf-core/src/test/resources/application/asyncapi.polymorphic.json @@ -29,6 +29,7 @@ ] }, "io.github.springwolf.core.integrationtests.application.polymorphic.PolymorphicPayloadApplication.Cat": { + "title": "Cat", "type": "object", "examples": [ { @@ -51,6 +52,7 @@ ] }, "io.github.springwolf.core.integrationtests.application.polymorphic.PolymorphicPayloadApplication.Dog": { + "title": "Dog", "type": "object", "examples": [ { diff --git a/springwolf-core/src/test/resources/schemas/json/annotation-definitions.json b/springwolf-core/src/test/resources/schemas/json/annotation-definitions.json index f31883815..d3d744b63 100644 --- a/springwolf-core/src/test/resources/schemas/json/annotation-definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/annotation-definitions.json @@ -28,6 +28,7 @@ } ] }, "io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.SchemaWithOneOf.ImplementationOne" : { + "title" : "ImplementationOne", "type" : "object", "properties" : { "firstOne" : { @@ -43,6 +44,7 @@ } ] }, "io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.SchemaWithOneOf.ImplementationTwo" : { + "title" : "ImplementationTwo", "type" : "object", "properties" : { "firstTwo" : { diff --git a/springwolf-core/src/test/resources/schemas/json/array-definitions.json b/springwolf-core/src/test/resources/schemas/json/array-definitions.json index 3a211db9b..26166fa0f 100644 --- a/springwolf-core/src/test/resources/schemas/json/array-definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/array-definitions.json @@ -4,6 +4,7 @@ "type" : "object", "properties" : { "flist" : { + "title" : "List", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.SimpleFoo" diff --git a/springwolf-core/src/test/resources/schemas/json/complex-definitions.json b/springwolf-core/src/test/resources/schemas/json/complex-definitions.json index cf914312c..82e9cf411 100644 --- a/springwolf-core/src/test/resources/schemas/json/complex-definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/complex-definitions.json @@ -67,6 +67,7 @@ "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.ComplexFoo.Nested.Cyclic" }, "nli" : { + "title" : "List", "type" : "array", "items" : { "type" : "integer", @@ -74,6 +75,7 @@ } }, "nmfm" : { + "title" : "Map", "type" : "object", "additionalProperties" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.ComplexFoo.Nested.MyClass" @@ -83,6 +85,7 @@ "type" : "string" }, "nsm" : { + "title" : "Set", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.ComplexFoo.Nested.MyClass" diff --git a/springwolf-core/src/test/resources/schemas/json/definitions.json b/springwolf-core/src/test/resources/schemas/json/definitions.json index 8eeb28bdd..04e28eee8 100644 --- a/springwolf-core/src/test/resources/schemas/json/definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/definitions.json @@ -23,6 +23,7 @@ "type" : "object", "properties" : { "b" : { + "title" : "Bar", "type" : "string", "enum" : [ "BAR1", "BAR2" ] }, diff --git a/springwolf-core/src/test/resources/schemas/json/documented-definitions.json b/springwolf-core/src/test/resources/schemas/json/documented-definitions.json index 4823d37d4..8588a1549 100644 --- a/springwolf-core/src/test/resources/schemas/json/documented-definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/documented-definitions.json @@ -20,6 +20,7 @@ "examples" : [ "2024-04-24T00:00:00.000+00:00" ] }, "ls_plain" : { + "title" : "List", "type" : "array", "description" : "List without example", "items" : { @@ -28,6 +29,7 @@ } }, "mss" : { + "title" : "Map", "type" : "object", "description" : "Map with example", "examples" : [ { @@ -40,6 +42,7 @@ } }, "mss_plain" : { + "title" : "Map", "type" : "object", "description" : "Map without example", "additionalProperties" : { diff --git a/springwolf-core/src/test/resources/schemas/json/generics-wrapper-definitions.json b/springwolf-core/src/test/resources/schemas/json/generics-wrapper-definitions.json index 5c8c04aaa..488bd7892 100644 --- a/springwolf-core/src/test/resources/schemas/json/generics-wrapper-definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/generics-wrapper-definitions.json @@ -1,5 +1,6 @@ { "io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.ListWrapper" : { + "title" : "ListWrapper", "type" : "array", "properties" : { "empty" : { diff --git a/springwolf-core/src/test/resources/schemas/json/json-type-definitions.json b/springwolf-core/src/test/resources/schemas/json/json-type-definitions.json index aff79defd..06acf2da4 100644 --- a/springwolf-core/src/test/resources/schemas/json/json-type-definitions.json +++ b/springwolf-core/src/test/resources/schemas/json/json-type-definitions.json @@ -1,5 +1,6 @@ { "io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.JsonTypeTest.JsonTypeInfoExampleOne" : { + "title" : "JsonTypeInfoExampleOne", "type" : "object", "description" : "Json Type Info Example One model", "examples" : [ { @@ -20,6 +21,7 @@ } ] }, "io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceIntegrationTest.JsonTypeTest.JsonTypeInfoExampleTwo" : { + "title" : "JsonTypeInfoExampleTwo", "type" : "object", "description" : "Json Type Info Example Two model", "examples" : [ { diff --git a/springwolf-core/src/test/resources/schemas/xml/annotation-definitions-xml.json b/springwolf-core/src/test/resources/schemas/xml/annotation-definitions-xml.json index df4193f95..806dace70 100644 --- a/springwolf-core/src/test/resources/schemas/xml/annotation-definitions-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/annotation-definitions-xml.json @@ -20,6 +20,7 @@ } ] }, "io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.SchemaWithOneOf.ImplementationOne" : { + "title" : "ImplementationOne", "type" : "string", "properties" : { "firstOne" : { @@ -32,6 +33,7 @@ "examples" : [ "stringstring" ] }, "io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.SchemaWithOneOf.ImplementationTwo" : { + "title" : "ImplementationTwo", "type" : "string", "properties" : { "firstTwo" : { diff --git a/springwolf-core/src/test/resources/schemas/xml/array-definitions-xml.json b/springwolf-core/src/test/resources/schemas/xml/array-definitions-xml.json index 805c67f36..9bcbe44a6 100644 --- a/springwolf-core/src/test/resources/schemas/xml/array-definitions-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/array-definitions-xml.json @@ -4,6 +4,7 @@ "type" : "string", "properties" : { "flist" : { + "title" : "List", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.SimpleFoo" diff --git a/springwolf-core/src/test/resources/schemas/xml/complex-definitions-with-attributes-xml.json b/springwolf-core/src/test/resources/schemas/xml/complex-definitions-with-attributes-xml.json index b9d36d381..6e9827328 100644 --- a/springwolf-core/src/test/resources/schemas/xml/complex-definitions-with-attributes-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/complex-definitions-with-attributes-xml.json @@ -36,6 +36,7 @@ "type" : "string", "properties" : { "nli" : { + "title" : "List", "type" : "array", "items" : { "type" : "integer", @@ -43,6 +44,7 @@ } }, "nmfm" : { + "title" : "Map", "type" : "object", "additionalProperties" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.ComplexAttributesFoo.Nested.MyClassWithAttribute" @@ -52,6 +54,7 @@ "type" : "string" }, "nsm" : { + "title" : "Set", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.ComplexAttributesFoo.Nested.MyClassWithAttribute" diff --git a/springwolf-core/src/test/resources/schemas/xml/complex-definitions-xml.json b/springwolf-core/src/test/resources/schemas/xml/complex-definitions-xml.json index 6e64e0ef2..057572bb0 100644 --- a/springwolf-core/src/test/resources/schemas/xml/complex-definitions-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/complex-definitions-xml.json @@ -43,6 +43,7 @@ "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.ComplexFoo.Nested.Cyclic" }, "nli" : { + "title" : "List", "type" : "array", "items" : { "type" : "integer", @@ -50,6 +51,7 @@ } }, "nmfm" : { + "title" : "Map", "type" : "object", "additionalProperties" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.ComplexFoo.Nested.MyClass" @@ -59,6 +61,7 @@ "type" : "string" }, "nsm" : { + "title" : "Set", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.ComplexFoo.Nested.MyClass" diff --git a/springwolf-core/src/test/resources/schemas/xml/definitions-xml.json b/springwolf-core/src/test/resources/schemas/xml/definitions-xml.json index bac506b1f..1f582fd0b 100644 --- a/springwolf-core/src/test/resources/schemas/xml/definitions-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/definitions-xml.json @@ -17,6 +17,7 @@ "type" : "string", "properties" : { "b" : { + "title" : "Bar", "type" : "string", "enum" : [ "BAR1", "BAR2" ] }, diff --git a/springwolf-core/src/test/resources/schemas/xml/documented-definitions-xml.json b/springwolf-core/src/test/resources/schemas/xml/documented-definitions-xml.json index 3a2e5c262..5419e3f83 100644 --- a/springwolf-core/src/test/resources/schemas/xml/documented-definitions-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/documented-definitions-xml.json @@ -20,6 +20,7 @@ "examples" : [ "2024-04-24T00:00:00.000+00:00" ] }, "ls_plain" : { + "title" : "List", "type" : "array", "description" : "List without example", "items" : { @@ -28,6 +29,7 @@ } }, "mss" : { + "title" : "Map", "type" : "object", "description" : "Map with example", "examples" : [ "value1" ], @@ -38,6 +40,7 @@ } }, "mss_plain" : { + "title" : "Map", "type" : "object", "description" : "Map without example", "additionalProperties" : { diff --git a/springwolf-core/src/test/resources/schemas/xml/generics-wrapper-definitions-xml.json b/springwolf-core/src/test/resources/schemas/xml/generics-wrapper-definitions-xml.json index 3f16efbf2..24aa9fc44 100644 --- a/springwolf-core/src/test/resources/schemas/xml/generics-wrapper-definitions-xml.json +++ b/springwolf-core/src/test/resources/schemas/xml/generics-wrapper-definitions-xml.json @@ -1,5 +1,6 @@ { "io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceIntegrationTest.ListWrapper" : { + "title" : "ListWrapper", "type" : "string", "properties" : { "empty" : { diff --git a/springwolf-core/src/test/resources/schemas/yaml/annotation-definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/annotation-definitions-yaml.json index b8bd51de7..a14f1a77f 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/annotation-definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/annotation-definitions-yaml.json @@ -20,6 +20,7 @@ } ] }, "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.SchemaWithOneOf.ImplementationOne" : { + "title" : "ImplementationOne", "type" : "string", "properties" : { "firstOne" : { @@ -32,6 +33,7 @@ "examples" : [ "firstOne: string\nsecondOne: string\n" ] }, "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.SchemaWithOneOf.ImplementationTwo" : { + "title" : "ImplementationTwo", "type" : "string", "properties" : { "firstTwo" : { diff --git a/springwolf-core/src/test/resources/schemas/yaml/array-definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/array-definitions-yaml.json index 1047d1611..c204911f1 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/array-definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/array-definitions-yaml.json @@ -4,6 +4,7 @@ "type" : "string", "properties" : { "flist" : { + "title" : "List", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.SimpleFoo" diff --git a/springwolf-core/src/test/resources/schemas/yaml/complex-definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/complex-definitions-yaml.json index d3c04d38b..94dc95ef3 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/complex-definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/complex-definitions-yaml.json @@ -43,6 +43,7 @@ "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.ComplexFoo.Nested.Cyclic" }, "nli" : { + "title" : "List", "type" : "array", "items" : { "type" : "integer", @@ -50,6 +51,7 @@ } }, "nmfm" : { + "title" : "Map", "type" : "object", "additionalProperties" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.ComplexFoo.Nested.MyClass" @@ -59,6 +61,7 @@ "type" : "string" }, "nsm" : { + "title" : "Set", "type" : "array", "items" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.ComplexFoo.Nested.MyClass" diff --git a/springwolf-core/src/test/resources/schemas/yaml/definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/definitions-yaml.json index bf80996ab..80b997867 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/definitions-yaml.json @@ -17,6 +17,7 @@ "type" : "string", "properties" : { "b" : { + "title" : "Bar", "type" : "string", "enum" : [ "BAR1", "BAR2" ] }, diff --git a/springwolf-core/src/test/resources/schemas/yaml/documented-definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/documented-definitions-yaml.json index d899521e1..fa70d2e7a 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/documented-definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/documented-definitions-yaml.json @@ -20,6 +20,7 @@ "examples" : [ "2024-04-24T00:00:00.000+00:00" ] }, "ls_plain" : { + "title" : "List", "type" : "array", "description" : "List without example", "items" : { @@ -28,6 +29,7 @@ } }, "mss" : { + "title" : "Map", "type" : "object", "description" : "Map with example", "examples" : [ { @@ -40,6 +42,7 @@ } }, "mss_plain" : { + "title" : "Map", "type" : "object", "description" : "Map without example", "additionalProperties" : { diff --git a/springwolf-core/src/test/resources/schemas/yaml/generics-wrapper-definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/generics-wrapper-definitions-yaml.json index 824599749..026cb2b4f 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/generics-wrapper-definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/generics-wrapper-definitions-yaml.json @@ -1,5 +1,6 @@ { "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.ListWrapper" : { + "title" : "ListWrapper", "type" : "string", "properties" : { "empty" : { diff --git a/springwolf-core/src/test/resources/schemas/yaml/json-type-definitions-yaml.json b/springwolf-core/src/test/resources/schemas/yaml/json-type-definitions-yaml.json index e9f8878fb..0956bea90 100644 --- a/springwolf-core/src/test/resources/schemas/yaml/json-type-definitions-yaml.json +++ b/springwolf-core/src/test/resources/schemas/yaml/json-type-definitions-yaml.json @@ -1,5 +1,6 @@ { "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.JsonTypeTest.JsonTypeInfoExampleOne" : { + "title" : "JsonTypeInfoExampleOne", "type" : "string", "description" : "Json Type Info Example One model", "examples" : [ "foo: fooValue\ntype: string\n" ], @@ -17,6 +18,7 @@ } ] }, "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceIntegrationTest.JsonTypeTest.JsonTypeInfoExampleTwo" : { + "title" : "JsonTypeInfoExampleTwo", "type" : "string", "description" : "Json Type Info Example Two model", "examples" : [ "boo: booValue\ntype: string\n" ], diff --git a/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json index 45ae1c522..8a1f6b08a 100644 --- a/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json @@ -310,6 +310,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [ diff --git a/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.yaml b/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.yaml index d21296ded..1ddc4ce0d 100644 --- a/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.yaml +++ b/springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.yaml @@ -226,6 +226,7 @@ components: type: object properties: someEnum: + title: ExampleEnum type: string description: Some enum field enum: diff --git a/springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json index 07830ed39..e8769c23c 100644 --- a/springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json @@ -157,6 +157,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [ diff --git a/springwolf-examples/springwolf-jms-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-jms-example/src/test/resources/asyncapi.json index 3715c5cac..16ec695fe 100644 --- a/springwolf-examples/springwolf-jms-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-jms-example/src/test/resources/asyncapi.json @@ -97,6 +97,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [ diff --git a/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json index eb566038a..fa8899f98 100644 --- a/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json @@ -997,6 +997,7 @@ "$ref": "#/components/schemas/io.github.springwolf.examples.kafka.dto.avro.ExamplePayloadAvroDto" }, "someEnum": { + "title": "ExampleEnum", "type": "string", "enum": [ "FOO1", @@ -1036,6 +1037,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" } }, @@ -1081,6 +1083,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "enum": [ "FOO1", @@ -1114,6 +1117,7 @@ "FOO3", "UNRECOGNIZED" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -1172,6 +1176,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -1210,6 +1215,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [ @@ -1261,6 +1267,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -1287,12 +1294,14 @@ "type": "object", "properties": { "examplePayloads": { + "title": "List", "type": "array", "items": { "$ref": "#/components/schemas/io.github.springwolf.examples.kafka.dtos.ExamplePayloadDto" } }, "someStrings": { + "title": "Set", "type": "array", "items": { "type": "string", @@ -1334,6 +1343,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -1354,6 +1364,7 @@ "title": "ExamplePayloadDto", "type": "object" }, + "title": "List", "type": "array" }, "someStrings": { @@ -1361,6 +1372,7 @@ "description": "Some string field", "type": "string" }, + "title": "Set", "type": "array", "uniqueItems": true } @@ -1374,6 +1386,7 @@ "type": "object", "properties": { "enumField": { + "title": "ComplexEnum", "type": [ "string", "null" @@ -1434,6 +1447,7 @@ "COMPLEX2", null ], + "title": "ComplexEnum", "type": [ "string", "null" @@ -1479,6 +1493,7 @@ "type": "string" }, "someEnum": { + "title": "ExampleEnum", "type": "string", "enum": [ "FOO1", @@ -1507,6 +1522,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -1526,6 +1542,7 @@ "type": "string", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "enum": [ "FOO1", @@ -1553,6 +1570,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -1659,6 +1677,7 @@ } ], "description": "Electric vehicle implementation of VehicleBase", + "title": "VehicleElectricPayloadDto", "type": "object" }, { @@ -1672,6 +1691,7 @@ } ], "description": "Gasoline vehicle implementation of VehicleBase", + "title": "VehicleGasolinePayloadDto", "type": "object" } ], @@ -1695,6 +1715,7 @@ } }, "io.github.springwolf.examples.kafka.dtos.discriminator.VehicleElectricPayloadDto": { + "title": "VehicleElectricPayloadDto", "type": "object", "description": "Electric vehicle implementation of VehicleBase", "examples": [ @@ -1749,6 +1770,7 @@ } ], "description": "Gasoline vehicle implementation of VehicleBase", + "title": "VehicleGasolinePayloadDto", "type": "object" } ], @@ -1779,10 +1801,12 @@ } ], "description": "Electric vehicle implementation of VehicleBase", + "title": "VehicleElectricPayloadDto", "type": "object" } }, "io.github.springwolf.examples.kafka.dtos.discriminator.VehicleGasolinePayloadDto": { + "title": "VehicleGasolinePayloadDto", "type": "object", "description": "Gasoline vehicle implementation of VehicleBase", "examples": [ @@ -1832,6 +1856,7 @@ } ], "description": "Electric vehicle implementation of VehicleBase", + "title": "VehicleElectricPayloadDto", "type": "object" }, { } @@ -1862,6 +1887,7 @@ } ], "description": "Gasoline vehicle implementation of VehicleBase", + "title": "VehicleGasolinePayloadDto", "type": "object" } }, diff --git a/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.openapiv31.json b/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.openapiv31.json index 51688b661..1bab4f53e 100644 --- a/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.openapiv31.json +++ b/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.openapiv31.json @@ -710,7 +710,8 @@ "FOO1", "FOO2", "FOO3" - ] + ], + "title": "ExampleEnum" } }, "title": "AnotherPayloadAvroDto" @@ -751,7 +752,8 @@ "FOO2", "FOO3", "UNRECOGNIZED" - ] + ], + "title": "ExampleEnum" }, "someLong": { "type": "integer", @@ -811,7 +813,8 @@ "FOO2", "FOO3" ], - "example": "FOO2" + "example": "FOO2", + "title": "ExampleEnum" }, "someLong": { "type": "integer", @@ -854,7 +857,8 @@ "type": "array", "items": { "$ref": "#/components/schemas/io.github.springwolf.examples.kafka.dtos.ExamplePayloadDto" - } + }, + "title": "List" }, "someStrings": { "type": "array", @@ -863,6 +867,7 @@ "description": "Some string field", "example": "some string value" }, + "title": "Set", "uniqueItems": true } }, @@ -887,7 +892,8 @@ "enum": [ "COMPLEX1", "COMPLEX2" - ] + ], + "title": "ComplexEnum" }, "notRequiredField": { "type": "string", @@ -932,7 +938,8 @@ "FOO1", "FOO2", "FOO3" - ] + ], + "title": "ExampleEnum" }, "someLong": { "type": "integer", @@ -957,7 +964,8 @@ "FOO1", "FOO2", "FOO3" - ] + ], + "title": "ExampleEnum" }, "someLong": { "type": "integer", @@ -1070,7 +1078,8 @@ "powerSource": "string", "topSpeed": 0, "vehicleType": "string" - } + }, + "title": "VehicleElectricPayloadDto" } }, "io.github.springwolf.examples.kafka.dtos.discriminator.VehicleGasolinePayloadDto": { @@ -1100,7 +1109,8 @@ "powerSource": "string", "topSpeed": 0, "vehicleType": "string" - } + }, + "title": "VehicleGasolinePayloadDto" } }, "java.lang.Integer": { diff --git a/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.yaml b/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.yaml index ba08b23c3..da4a1ec13 100644 --- a/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.yaml +++ b/springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.yaml @@ -695,6 +695,7 @@ components: examplePayloadAvroDto: $ref: "#/components/schemas/io.github.springwolf.examples.kafka.dto.avro.ExamplePayloadAvroDto" someEnum: + title: ExampleEnum type: string enum: - FOO1 @@ -722,6 +723,7 @@ components: - FOO1 - FOO2 - FOO3 + title: ExampleEnum type: string title: AnotherPayloadAvroDto type: object @@ -752,6 +754,7 @@ components: type: object properties: someEnum: + title: ExampleEnum type: string enum: - FOO1 @@ -776,6 +779,7 @@ components: - FOO2 - FOO3 - UNRECOGNIZED + title: ExampleEnum type: string someLong: format: int64 @@ -820,6 +824,7 @@ components: - FOO1 - FOO2 - FOO3 + title: ExampleEnum type: string someLong: description: Some long field @@ -859,6 +864,7 @@ components: type: object properties: someEnum: + title: ExampleEnum type: string description: Some enum field enum: @@ -913,6 +919,7 @@ components: - FOO1 - FOO2 - FOO3 + title: ExampleEnum type: string someLong: description: Some long field @@ -944,10 +951,12 @@ components: type: object properties: examplePayloads: + title: List type: array items: $ref: "#/components/schemas/io.github.springwolf.examples.kafka.dtos.ExamplePayloadDto" someStrings: + title: Set type: array items: type: string @@ -979,6 +988,7 @@ components: - FOO1 - FOO2 - FOO3 + title: ExampleEnum type: string someLong: description: Some long field @@ -1005,11 +1015,13 @@ components: - someString title: ExamplePayloadDto type: object + title: List type: array someStrings: items: description: Some string field type: string + title: Set type: array uniqueItems: true title: NestedPayloadDto @@ -1019,6 +1031,7 @@ components: type: object properties: enumField: + title: ComplexEnum type: - string - "null" @@ -1066,6 +1079,7 @@ components: - COMPLEX1 - COMPLEX2 - null + title: ComplexEnum type: - string - "null" @@ -1098,6 +1112,7 @@ components: someAttribute: type: string someEnum: + title: ExampleEnum type: string enum: - FOO1 @@ -1119,6 +1134,7 @@ components: - FOO1 - FOO2 - FOO3 + title: ExampleEnum type: string someLong: format: int64 @@ -1132,6 +1148,7 @@ components: type: string properties: someEnum: + title: ExampleEnum type: string enum: - FOO1 @@ -1155,6 +1172,7 @@ components: - FOO1 - FOO2 - FOO3 + title: ExampleEnum type: string someLong: format: int64 @@ -1227,6 +1245,7 @@ components: type: integer type: object description: Electric vehicle implementation of VehicleBase + title: VehicleElectricPayloadDto type: object - allOf: - {} @@ -1234,6 +1253,7 @@ components: fuelCapacity: {} type: object description: Gasoline vehicle implementation of VehicleBase + title: VehicleGasolinePayloadDto type: object properties: enginePower: @@ -1249,6 +1269,7 @@ components: title: VehicleBase type: object io.github.springwolf.examples.kafka.dtos.discriminator.VehicleElectricPayloadDto: + title: VehicleElectricPayloadDto type: object description: Electric vehicle implementation of VehicleBase examples: @@ -1285,6 +1306,7 @@ components: type: integer type: object description: Gasoline vehicle implementation of VehicleBase + title: VehicleGasolinePayloadDto type: object properties: enginePower: @@ -1304,8 +1326,10 @@ components: chargeTime: {} type: object description: Electric vehicle implementation of VehicleBase + title: VehicleElectricPayloadDto type: object io.github.springwolf.examples.kafka.dtos.discriminator.VehicleGasolinePayloadDto: + title: VehicleGasolinePayloadDto type: object description: Gasoline vehicle implementation of VehicleBase examples: @@ -1338,6 +1362,7 @@ components: type: integer type: object description: Electric vehicle implementation of VehicleBase + title: VehicleElectricPayloadDto type: object - {} properties: @@ -1357,6 +1382,7 @@ components: fuelCapacity: {} type: object description: Gasoline vehicle implementation of VehicleBase + title: VehicleGasolinePayloadDto type: object java.lang.Integer: type: integer diff --git a/springwolf-examples/springwolf-kafka-example/src/test/resources/groups/vehicles.json b/springwolf-examples/springwolf-kafka-example/src/test/resources/groups/vehicles.json index 275ad8de3..beb65d8aa 100644 --- a/springwolf-examples/springwolf-kafka-example/src/test/resources/groups/vehicles.json +++ b/springwolf-examples/springwolf-kafka-example/src/test/resources/groups/vehicles.json @@ -169,6 +169,7 @@ } ], "description": "Electric vehicle implementation of VehicleBase", + "title": "VehicleElectricPayloadDto", "type": "object" }, { @@ -182,6 +183,7 @@ } ], "description": "Gasoline vehicle implementation of VehicleBase", + "title": "VehicleGasolinePayloadDto", "type": "object" } ], @@ -205,6 +207,7 @@ } }, "io.github.springwolf.examples.kafka.dtos.discriminator.VehicleElectricPayloadDto": { + "title": "VehicleElectricPayloadDto", "type": "object", "description": "Electric vehicle implementation of VehicleBase", "examples": [ @@ -259,6 +262,7 @@ } ], "description": "Gasoline vehicle implementation of VehicleBase", + "title": "VehicleGasolinePayloadDto", "type": "object" } ], @@ -289,10 +293,12 @@ } ], "description": "Electric vehicle implementation of VehicleBase", + "title": "VehicleElectricPayloadDto", "type": "object" } }, "io.github.springwolf.examples.kafka.dtos.discriminator.VehicleGasolinePayloadDto": { + "title": "VehicleGasolinePayloadDto", "type": "object", "description": "Gasoline vehicle implementation of VehicleBase", "examples": [ @@ -342,6 +348,7 @@ } ], "description": "Electric vehicle implementation of VehicleBase", + "title": "VehicleElectricPayloadDto", "type": "object" }, { } @@ -372,6 +379,7 @@ } ], "description": "Gasoline vehicle implementation of VehicleBase", + "title": "VehicleGasolinePayloadDto", "type": "object" } } diff --git a/springwolf-examples/springwolf-sns-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-sns-example/src/test/resources/asyncapi.json index ce2e147dc..f0a6135be 100644 --- a/springwolf-examples/springwolf-sns-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-sns-example/src/test/resources/asyncapi.json @@ -103,6 +103,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { @@ -141,6 +142,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [ @@ -192,6 +194,7 @@ "FOO2", "FOO3" ], + "title": "ExampleEnum", "type": "string" }, "someLong": { diff --git a/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json index 3bbba78c5..1707362d0 100644 --- a/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json @@ -113,6 +113,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [ diff --git a/springwolf-examples/springwolf-stomp-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-stomp-example/src/test/resources/asyncapi.json index d9799ebda..75606c06b 100644 --- a/springwolf-examples/springwolf-stomp-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-stomp-example/src/test/resources/asyncapi.json @@ -143,6 +143,7 @@ "type": "object", "properties": { "someEnum": { + "title": "ExampleEnum", "type": "string", "description": "Some enum field", "enum": [