Skip to content

Commit 8c27aaa

Browse files
author
Ansh Chaturvedi
committed
fix: change from string to boolean
1 parent e3ad312 commit 8c27aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-generator/src/knownImports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export const KNOWN_IMPORTS: KnownImports = {
315315
NumberFromString: () => E.right({ type: 'string', format: 'number' }),
316316
BigIntFromString: () => E.right({ type: 'string', format: 'number' }),
317317
BooleanFromNumber: () => E.right({ type: 'number', enum: [0, 1] }),
318-
BooleanFromString: () => E.right({ type: 'string', enum: ['true', 'false'] }),
318+
BooleanFromString: () => E.right({ type: 'boolean' }),
319319
DateFromISOString: () =>
320320
E.right({ type: 'string', format: 'date-time', title: 'ISO Date String' }),
321321
DateFromNumber: () =>

0 commit comments

Comments
 (0)