From 9dc811b1e98a9be189948b7fcb4b90059578479d Mon Sep 17 00:00:00 2001 From: "jonas-lt@live.dk" Date: Thu, 23 Nov 2023 10:14:44 -1000 Subject: [PATCH] add test --- src/parse.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse.ts b/src/parse.ts index 988f9ae51..0201320ad 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -59,6 +59,7 @@ export async function parse(parser: Parser, spectral: Spectral, asyncapi: Input, // unfreeze the object - Spectral makes resolved document "freezed" const validatedDoc = copy(validated as Record); const detailed = createDetailedAsyncAPI(validatedDoc, asyncapi as DetailedAsyncAPI['input'], options.source); + detailed.parsed['x-test'] = 'test'; const document = createAsyncAPIDocument(detailed); setExtension(xParserSpecParsed, true, document); setExtension(xParserApiVersion, ParserAPIVersion, document);