We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e60009 commit 5897e4bCopy full SHA for 5897e4b
.changeset/itchy-owls-beg.md
@@ -0,0 +1,5 @@
1
+---
2
+"swagger-typescript-api": patch
3
4
+
5
+Fix being able to call getComponentByRef from templates
src/schema-components-map.ts
@@ -65,9 +65,9 @@ export class SchemaComponentsMap {
65
);
66
}
67
68
- get($ref: string) {
+ get = ($ref: string) => {
69
return this._data.find((c) => c.$ref === $ref) || null;
70
- }
+ };
71
72
// Ensure enums are at the top of components list
73
enumsFirst() {
0 commit comments