Skip to content

Commit 39c5330

Browse files
committed
refactor: supplement with wp codec
TICKET: WP-6196
1 parent 90e0f5a commit 39c5330

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/express/openapi-generator.rc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ module.exports = (E) => {
1212
'io-ts-types': {
1313
Json: () => E.right({ type: 'object', properties: {}, required: [] }),
1414
NonEmptyString: () => E.right({ type: 'string', minLength: 1 }),
15+
DateFromISOString: () => E.right({ type: 'string', format: 'date-time' }),
16+
},
17+
'io-ts-bigint': {
18+
BigIntFromString: () => E.right({ type: 'string' }),
19+
NegativeBigIntFromString: () => E.right({ type: 'string' }),
20+
PositiveBigIntFromString: () => E.right({ type: 'string' }),
21+
NonZeroBigIntFromString: () => E.right({ type: 'string' }),
22+
NonNegativeBigIntFromString: () => E.right({ type: 'string' }),
23+
},
24+
'io-ts-numbers': {
25+
NumberFromString: () => E.right({ type: 'string' }),
1526
},
1627
};
1728
};

0 commit comments

Comments
 (0)