Skip to content

Commit

Permalink
Merge pull request #840 from BitGo/fix-booleanfromstring-import
Browse files Browse the repository at this point in the history
fix: change from `string` to `boolean`
  • Loading branch information
anshchaturvedi authored Jul 22, 2024
2 parents e3ad312 + 8c27aaa commit fc416b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/knownImports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export const KNOWN_IMPORTS: KnownImports = {
NumberFromString: () => E.right({ type: 'string', format: 'number' }),
BigIntFromString: () => E.right({ type: 'string', format: 'number' }),
BooleanFromNumber: () => E.right({ type: 'number', enum: [0, 1] }),
BooleanFromString: () => E.right({ type: 'string', enum: ['true', 'false'] }),
BooleanFromString: () => E.right({ type: 'boolean' }),
DateFromISOString: () =>
E.right({ type: 'string', format: 'date-time', title: 'ISO Date String' }),
DateFromNumber: () =>
Expand Down

0 comments on commit fc416b7

Please sign in to comment.