Skip to content

Commit ff30b3e

Browse files
committed
fix: add BooleanFromString codec to openapi-generator config
WP-6671
1 parent 6a465ae commit ff30b3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/express/openapi-generator.rc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = (E) => {
1414
NonEmptyString: () => E.right({ type: 'string', minLength: 1 }),
1515
DateFromISOString: () => E.right({ type: 'string', format: 'date-time' }),
1616
BigIntFromString: () => E.right({ type: 'string' }),
17+
BooleanFromString: () => E.right({ type: 'string', enum: ['true', 'false'] }),
1718
},
1819
'io-ts-bigint': {
1920
BigIntFromString: () => E.right({ type: 'string' }),

0 commit comments

Comments
 (0)