From a87a8baf2a50391d74b58fdaa868cdab27743c83 Mon Sep 17 00:00:00 2001 From: derberg Date: Thu, 24 Jun 2021 13:47:16 +0200 Subject: [PATCH] fix: move changes in message examples to 2.1 schema --- schemas/2.0.0.json | 12 ------------ schemas/2.1.0.json | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/schemas/2.0.0.json b/schemas/2.0.0.json index 2ee78248..66c18abc 100644 --- a/schemas/2.0.0.json +++ b/schemas/2.0.0.json @@ -702,19 +702,7 @@ "items": { "type": "object", "additionalProperties": false, - "anyOf": [ - {"required": ["payload"] }, - {"required": ["headers"] } - ], "properties": { - "name": { - "type": "string", - "description": "Machine readable name of the message example." - }, - "summary": { - "type": "string", - "description": "A brief summary of the message example." - }, "headers": { "type": "object" }, diff --git a/schemas/2.1.0.json b/schemas/2.1.0.json index 0ec628b6..50afd5b0 100644 --- a/schemas/2.1.0.json +++ b/schemas/2.1.0.json @@ -702,7 +702,19 @@ "items": { "type": "object", "additionalProperties": false, + "anyOf": [ + {"required": ["payload"] }, + {"required": ["headers"] } + ], "properties": { + "name": { + "type": "string", + "description": "Machine readable name of the message example." + }, + "summary": { + "type": "string", + "description": "A brief summary of the message example." + }, "headers": { "type": "object" },