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 } ],