Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/processors/AsyncAPIInputProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions test/processors/AsyncAPIInputProcessor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down