From 518e3e0dcd4962b4c3aedf8fdb1465d6206a0225 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Mon, 11 Mar 2024 21:55:48 +0400 Subject: [PATCH] fix: AsyncAPI v3 shows warning in Studio and IntelliJ plugin when referencing a a json schema - Revert changes from auto generated schema - Change allOf to anyOf in multiFormatSchema https://github.com/asyncapi/spec-json-schemas/issues/494 https://github.com/asyncapi/jasyncapi-idea-plugin/issues/49 --- definitions/3.0.0/multiFormatSchema.json | 2 +- schemas/3.0.0-without-$id.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/definitions/3.0.0/multiFormatSchema.json b/definitions/3.0.0/multiFormatSchema.json index d4047bb0..de3d027b 100644 --- a/definitions/3.0.0/multiFormatSchema.json +++ b/definitions/3.0.0/multiFormatSchema.json @@ -54,7 +54,7 @@ "description": "Definition of the message payload. It can be of any type but defaults to Schema Object. It MUST match the schema format defined in schemaFormat, including the encoding type. E.g., Avro should be inlined as either a YAML or JSON object instead of as a string to be parsed as YAML or JSON. Non-JSON-based schemas (e.g., Protobuf or XSD) MUST be inlined as a string." } }, - "allOf": [ + "anyOf": [ { "if": { "not": { diff --git a/schemas/3.0.0-without-$id.json b/schemas/3.0.0-without-$id.json index 19ad0158..87306fe9 100644 --- a/schemas/3.0.0-without-$id.json +++ b/schemas/3.0.0-without-$id.json @@ -2702,7 +2702,7 @@ "description": "Definition of the message payload. It can be of any type but defaults to Schema Object. It MUST match the schema format defined in schemaFormat, including the encoding type. E.g., Avro should be inlined as either a YAML or JSON object instead of as a string to be parsed as YAML or JSON. Non-JSON-based schemas (e.g., Protobuf or XSD) MUST be inlined as a string." } }, - "anyOf": [ + "allOf": [ { "if": { "not": { @@ -5617,7 +5617,7 @@ "properties": { "queue": { "description": "A definition of the queue that will be used as the channel.", - "$ref": "#/definitions/bindings-sqs-0.2.0-channel/definitions/queue" + "$ref": "#/definitions/bindings-sqs-0.2.0-channel" }, "deadLetterQueue": { "description": "A definition of the queue that will be used for un-processable messages.",