diff --git a/src/processors/AsyncAPIInputProcessor.ts b/src/processors/AsyncAPIInputProcessor.ts index a17620ff99..00bb813cd9 100644 --- a/src/processors/AsyncAPIInputProcessor.ts +++ b/src/processors/AsyncAPIInputProcessor.ts @@ -9,7 +9,7 @@ import { AsyncapiV2Schema } from '../models/AsyncapiV2Schema'; * Class for processing AsyncAPI inputs */ export class AsyncAPIInputProcessor extends AbstractInputProcessor { - static supportedVersions = ['2.0.0', '2.1.0']; + static supportedVersions = ['2.0.0', '2.1.0', '2.2.0']; /** * Process the input as an AsyncAPI document diff --git a/test/processors/AsyncAPIInputProcessor.spec.ts b/test/processors/AsyncAPIInputProcessor.spec.ts index ca94104a20..d9f4be263c 100644 --- a/test/processors/AsyncAPIInputProcessor.spec.ts +++ b/test/processors/AsyncAPIInputProcessor.spec.ts @@ -42,6 +42,10 @@ describe('AsyncAPIInputProcessor', () => { const parsedObject = {asyncapi: '2.1.0'}; expect(processor.shouldProcess(parsedObject)).toEqual(true); }); + test('should be able to process AsyncAPI 2.2.0', () => { + const parsedObject = {asyncapi: '2.2.0'}; + expect(processor.shouldProcess(parsedObject)).toEqual(true); + }); }); describe('tryGetVersionOfDocument()', () => { const processor = new AsyncAPIInputProcessor();