From c60ebbf87f3a6a82378dc2806ee5f0dc9c6954ca Mon Sep 17 00:00:00 2001 From: Timon Back Date: Fri, 24 May 2024 13:17:33 +0200 Subject: [PATCH] deps(swagger-core): update schema for byte[] Original change: https://github.com/swagger-api/swagger-core/pull/4659 --- .../test/resources/schemas/complex-definitions.json | 11 ++++------- .../schemas/xml/complex-definitions-xml.json | 7 ++----- .../schemas/yaml/complex-definitions-yaml.json | 11 ++++------- 3 files changed, 10 insertions(+), 19 deletions(-) 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",