Skip to content

Commit

Permalink
🧹 Removed spelling mistakein comments of bundtools/bundler/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
devilkiller-ag committed Dec 13, 2023
1 parent e21163c commit 61f1746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/bundler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
Expand All @@ -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(
Expand All @@ -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';

Expand All @@ -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(
Expand Down

0 comments on commit 61f1746

Please sign in to comment.