From 882f59a0b424bc8ae7b70b0ad9338b18994bd39c Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Tue, 26 Jul 2022 13:26:29 +0200 Subject: [PATCH 1/2] feat: move tags and externalDocs objects from root to info object --- definitions/3.0.0/info.json | 10 ++++++++++ schemas/3.0.0.json | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/definitions/3.0.0/info.json b/definitions/3.0.0/info.json index 1cfc1ee8..ff622347 100644 --- a/definitions/3.0.0/info.json +++ b/definitions/3.0.0/info.json @@ -34,6 +34,16 @@ }, "license": { "$ref": "http://asyncapi.com/definitions/3.0.0/license.json" + }, + "tags": { + "type": "array", + "items": { + "$ref": "http://asyncapi.com/definitions/3.0.0/tag.json" + }, + "uniqueItems": true + }, + "externalDocs": { + "$ref": "http://asyncapi.com/definitions/3.0.0/externalDocs.json" } }, "$schema": "http://json-schema.org/draft-07/schema#", diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index 6466df19..b1669afe 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -41,16 +41,6 @@ }, "components": { "$ref": "http://asyncapi.com/definitions/3.0.0/components.json" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/3.0.0/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/3.0.0/externalDocs.json" } }, "definitions": { From a75a1b7bf3fb127bd81fbeec97c710d0035d3187 Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Tue, 26 Jul 2022 13:44:33 +0200 Subject: [PATCH 2/2] fix format --- definitions/3.0.0/info.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/3.0.0/info.json b/definitions/3.0.0/info.json index ff622347..b3f3d877 100644 --- a/definitions/3.0.0/info.json +++ b/definitions/3.0.0/info.json @@ -38,12 +38,12 @@ "tags": { "type": "array", "items": { - "$ref": "http://asyncapi.com/definitions/3.0.0/tag.json" + "$ref": "http://asyncapi.com/definitions/3.0.0/tag.json" }, "uniqueItems": true }, "externalDocs": { - "$ref": "http://asyncapi.com/definitions/3.0.0/externalDocs.json" + "$ref": "http://asyncapi.com/definitions/3.0.0/externalDocs.json" } }, "$schema": "http://json-schema.org/draft-07/schema#",