Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Sep 15, 2022
1 parent 1a8c269 commit 2ce550f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/v2/asyncapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class AsyncAPIDocument extends BaseModel<v2.AsyncAPIObject> implements As
if (!schemas.has(schema.json())) {
schemas.add(schema);
}
};
}
// return only schemas used in channels ("active" schemas)
const toIterate = Object.values(SchemaTypesToIterate).filter(s => s !== SchemaTypesToIterate.Components);
traverseAsyncApiDocument(this, callback, toIterate);
Expand Down
2 changes: 1 addition & 1 deletion src/models/v2/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Schema extends BaseModel<v2.AsyncAPISchemaObject, { id?: string, pa
}

uid(): string {
return this._meta.id || this.json(xParserSchemaId as any) as string
return this._meta.id || this.json(xParserSchemaId as any) as string;
}

$comment(): string | undefined {
Expand Down

0 comments on commit 2ce550f

Please sign in to comment.