From 410706a89d00c1c92cb8024a2d4be8024bcdd656 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 13:43:00 +0200 Subject: [PATCH] chore(deps): Bump swaggerVersion from 2.2.21 to 2.2.22 (#768) * --- updated-dependencies: - dependency-name: io.swagger.core.v3:swagger-core-jakarta dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.swagger.core.v3:swagger-annotations-jakarta dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.swagger.core.v3:swagger-models-jakarta dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.swagger.core.v3:swagger-annotations dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * deps(swagger-core): update schema for byte[] Original change: https://github.com/swagger-api/swagger-core/pull/4659 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Timon Back --- dependencies.gradle | 2 +- .../test/resources/schemas/complex-definitions.json | 11 ++++------- .../schemas/xml/complex-definitions-xml.json | 7 ++----- .../schemas/yaml/complex-definitions-yaml.json | 11 ++++------- 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 17740cb07..6f5b7a74b 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -70,7 +70,7 @@ ext { slf4jApiVersion = '2.0.13' slf4jSimpleVersion = '2.0.13' - swaggerVersion = '2.2.21' + swaggerVersion = '2.2.22' testcontainersVersion = '1.19.8' } diff --git a/springwolf-core/src/test/resources/schemas/complex-definitions.json b/springwolf-core/src/test/resources/schemas/complex-definitions.json index 1f25f9c6f..7adc584c9 100644 --- a/springwolf-core/src/test/resources/schemas/complex-definitions.json +++ b/springwolf-core/src/test/resources/schemas/complex-definitions.json @@ -35,7 +35,7 @@ "f" : 1.1, "i" : 0, "n" : { - "nba" : [ "YmFzZTY0LWV4YW1wbGU=" ], + "nba" : "YmFzZTY0LWV4YW1wbGU=", "nc" : { "cyclic" : { } }, @@ -54,11 +54,8 @@ "type" : "object", "properties" : { "nba" : { - "type" : "array", - "items" : { - "type" : "string", - "format" : "byte" - } + "type" : "string", + "format" : "byte" }, "nc" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultJsonComponentsServiceTest$ComplexFoo$Nested$Cyclic" @@ -92,7 +89,7 @@ } }, "examples" : [ { - "nba" : [ "YmFzZTY0LWV4YW1wbGU=" ], + "nba" : "YmFzZTY0LWV4YW1wbGU=", "nc" : { "cyclic" : { } }, 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 9346f79b5..05e79988e 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 @@ -34,11 +34,8 @@ "type" : "string", "properties" : { "nba" : { - "type" : "array", - "items" : { - "type" : "string", - "format" : "byte" - } + "type" : "string", + "format" : "byte" }, "nc" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultXmlComponentsServiceTest$ComplexFoo$Nested$Cyclic" 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 3ac3bbaee..4280e1d9d 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 @@ -28,17 +28,14 @@ "type" : "string" } }, - "examples" : [ "b: true\nd: 1.1\ndt: 2015-07-20T15:49:04-07:00\nf: 1.1\ni: 0\n\"n\":\n nba:\n - YmFzZTY0LWV4YW1wbGU=\n nc:\n cyclic: {}\n nli:\n - 0\n nmfm: {}\n ns: string\n nsm:\n - s: string\n nu: 3fa85f64-5717-4562-b3fc-2c963f66afa6\ns: string\n" ] + "examples" : [ "b: true\nd: 1.1\ndt: 2015-07-20T15:49:04-07:00\nf: 1.1\ni: 0\n\"n\":\n nba: YmFzZTY0LWV4YW1wbGU=\n nc:\n cyclic: {}\n nli:\n - 0\n nmfm: {}\n ns: string\n nsm:\n - s: string\n nu: 3fa85f64-5717-4562-b3fc-2c963f66afa6\ns: string\n" ] }, "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceTest$ComplexFoo$Nested" : { "type" : "string", "properties" : { "nba" : { - "type" : "array", - "items" : { - "type" : "string", - "format" : "byte" - } + "type" : "string", + "format" : "byte" }, "nc" : { "$ref" : "#/components/schemas/io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceTest$ComplexFoo$Nested$Cyclic" @@ -71,7 +68,7 @@ "format" : "uuid" } }, - "examples" : [ "nba:\n- YmFzZTY0LWV4YW1wbGU=\nnc:\n cyclic: {}\nnli:\n- 0\nnmfm: {}\nns: string\nnsm:\n- s: string\nnu: 3fa85f64-5717-4562-b3fc-2c963f66afa6\n" ] + "examples" : [ "nba: YmFzZTY0LWV4YW1wbGU=\nnc:\n cyclic: {}\nnli:\n- 0\nnmfm: {}\nns: string\nnsm:\n- s: string\nnu: 3fa85f64-5717-4562-b3fc-2c963f66afa6\n" ] }, "io.github.springwolf.core.asyncapi.components.DefaultYamlComponentsServiceTest$ComplexFoo$Nested$Cyclic" : { "type" : "string",