Skip to content

Commit 58356be

Browse files
committed
fix: add more missing io-ts codec definitions
1 parent 9ce75e5 commit 58356be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/openapi-generator/src/knownImports.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const KNOWN_IMPORTS: KnownImports = {
3131
boolean: () => E.right({ type: 'boolean' }),
3232
null: () => E.right({ type: 'null' }),
3333
undefined: () => E.right({ type: 'undefined' }),
34+
unknown: () => E.right({ type: 'any' }),
35+
any: () => E.right({ type: 'any' }),
3436
array: (_, innerSchema) => E.right({ type: 'array', items: innerSchema }),
3537
readonlyArray: (_, innerSchema) => E.right({ type: 'array', items: innerSchema }),
3638
type: (_, schema) => {
@@ -109,6 +111,7 @@ export const KNOWN_IMPORTS: KnownImports = {
109111
});
110112
},
111113
brand: (_, arg) => E.right(arg),
114+
UnknownRecord: () => E.right({ type: 'record', codomain: { type: 'any' } }),
112115
},
113116
'io-ts-types': {
114117
BigIntFromString: () => E.right({ type: 'string' }),

0 commit comments

Comments
 (0)