From 61f1746d507f4653c0dd220271b5b0a9353e5914 Mon Sep 17 00:00:00 2001 From: Ashmit JaiSarita Gupta <43639341+devilkiller-ag@users.noreply.github.com> Date: Wed, 13 Dec 2023 07:35:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Removed=20spelling=20mistakein?= =?UTF-8?q?=20comments=20of=20bundtools/bundler/index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/bundler/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/bundler/index.js b/tools/bundler/index.js index 0ff04696..c377e47d 100644 --- a/tools/bundler/index.js +++ b/tools/bundler/index.js @@ -167,7 +167,7 @@ function replaceRef(schema) { //new refs will only work if we remove $id that all point to asyncapi.com delete schema.$id - //traversing shoudl take place only in case of schemas with refs + //traversing should take place only in case of schemas with refs if (schema.$ref === undefined ) return; // updating refs that are related to remote URL refs that need to be update and point to inlined versions if (!schema.$ref.startsWith('#')) schema.$ref = `#/definitions/${getDefinitionName(schema.$ref)}`; @@ -178,7 +178,7 @@ function replaceRef(schema) { * to fix avro schema definitions to point to right direction */ function updateAvro(schema){ - //traversing shoudl take place only in case of schemas with refs + //traversing should take place only in case of schemas with refs if (schema.$ref === undefined) return; schema.$ref = schema.$ref.replace( @@ -192,7 +192,7 @@ function updateAvro(schema){ * to fix open api schema definitions to point to right direction */ function updateOpenApi(schema){ - //traversing shoudl take place only in case of schemas with refs + //traversing should take place only in case of schemas with refs if (schema.$ref === undefined) return; const openApiPropName = 'openapiSchema_3_0'; @@ -211,7 +211,7 @@ function updateOpenApi(schema){ * to fix open api schema definitions to point to right direction */ function updateJsonSchema(schema){ - //traversing shoudl take place only in case of schemas with refs + //traversing should take place only in case of schemas with refs if (schema.$ref === undefined) return; schema.$ref = schema.$ref.replace(