Skip to content

Commit fc416b7

Browse files
Merge pull request #840 from BitGo/fix-booleanfromstring-import
fix: change from `string` to `boolean`
2 parents e3ad312 + 8c27aaa commit fc416b7

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)