Skip to content

Commit ad43b6a

Browse files
committed
lint fix
1 parent 968b693 commit ad43b6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/openapi-typescript/src/transform/schema-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function shouldTransformToTsEnum(options: TransformNodeOptions, schemaObject: Sc
277277
}
278278

279279
// Enum must have string, number or null values
280-
if (!schemaObject.enum.every((v) => ['string', 'number', null].includes(typeof v))) {
280+
if (!schemaObject.enum.every((v) => ["string", "number", null].includes(typeof v))) {
281281
return false;
282282
}
283283

packages/openapi-typescript/test/transform/schema-object/enum.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,4 @@ function createTestContext(overrides: Partial<typeof DEFAULT_CTX> = {}) {
335335
},
336336
injectFooter: [],
337337
};
338-
}
338+
}

0 commit comments

Comments
 (0)