From dcf8d46f9c90c590d845788282102c75320a0772 Mon Sep 17 00:00:00 2001 From: Dale Lane Date: Mon, 27 Dec 2021 11:03:19 +0000 Subject: [PATCH] chore: update release branch --- lib/asyncapiSchemaFormatParser.js | 19 +++++++------------ package.json | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/lib/asyncapiSchemaFormatParser.js b/lib/asyncapiSchemaFormatParser.js index 07f125d9f..5ef121b5d 100644 --- a/lib/asyncapiSchemaFormatParser.js +++ b/lib/asyncapiSchemaFormatParser.js @@ -44,18 +44,13 @@ async function parse({ message, originalAsyncAPIDocument, fileFormat, parsedAsyn */ function getMimeTypes() { return [ - 'application/vnd.aai.asyncapi;version=2.0.0', - 'application/vnd.aai.asyncapi;version=2.1.0', - 'application/vnd.aai.asyncapi;version=2.2.0', - 'application/vnd.aai.asyncapi+json;version=2.0.0', - 'application/vnd.aai.asyncapi+json;version=2.1.0', - 'application/vnd.aai.asyncapi+json;version=2.2.0', - 'application/vnd.aai.asyncapi+yaml;version=2.0.0', - 'application/vnd.aai.asyncapi+yaml;version=2.1.0', - 'application/vnd.aai.asyncapi+yaml;version=2.2.0', - 'application/schema;version=draft-07', - 'application/schema+json;version=draft-07', - 'application/schema+yaml;version=draft-07', + ...['2.0.0', '2.1.0', '2.2.0', '2.3.0'].map((version) => { + return [ + `application/vnd.aai.asyncapi;version=${version}`, + `application/vnd.aai.asyncapi+json;version=${version}`, + `application/vnd.aai.asyncapi+yaml;version=${version}`, + ]; + }).flat().concat(['application/schema;version=draft-07', 'application/schema+json;version=draft-07', 'application/schema+yaml;version=draft-07']) ]; } diff --git a/package.json b/package.json index 0148d4f06..cf27935b3 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "branches": [ "master", { - "name": "2021-09-release", + "name": "2022-01-release", "prerelease": true } ],