From 2c5d1a1d7fd8ea7e9e22ce855633ad537ede0bd7 Mon Sep 17 00:00:00 2001 From: souvik Date: Wed, 13 Sep 2023 22:21:31 +0530 Subject: [PATCH] Update convert.ts --- src/commands/convert.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/convert.ts b/src/commands/convert.ts index fb265bf7dbf..b404a6df3f6 100644 --- a/src/commands/convert.ts +++ b/src/commands/convert.ts @@ -12,7 +12,7 @@ import type { ConvertVersion } from '@asyncapi/converter'; // @ts-ignore import specs from '@asyncapi/specs'; -const latestVersion = Object.keys(specs).pop() as string; +const latestVersion = Object.keys(specs.schemas).pop() as string; export default class Convert extends Command { static description = 'Convert asyncapi documents older to newer versions';