Skip to content

Commit 6edc7d7

Browse files
Merge pull request #541 from bitgopatmcl/fix-io-ts-known-imports
Fix io ts known imports
2 parents fe2967e + f93129a commit 6edc7d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/openapi-generator/src/knownImports.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const KNOWN_IMPORTS: KnownImports = {
3131
boolean: () => E.right({ type: 'primitive', value: 'boolean' }),
3232
null: () => E.right({ type: 'primitive', value: 'null' }),
3333
array: (_, innerSchema) => E.right({ type: 'array', items: innerSchema }),
34+
readonlyArray: (_, innerSchema) => E.right({ type: 'array', items: innerSchema }),
3435
type: (_, schema) => {
3536
if (schema.type !== 'object') {
3637
return E.left('typeC parameter must be object');
@@ -53,8 +54,8 @@ export const KNOWN_IMPORTS: KnownImports = {
5354
}, {});
5455
return E.right({ type: 'object', properties: props, required: [] });
5556
},
56-
strict: (_, schema) => E.right(schema),
57-
exact: (_, schema) => {
57+
exact: (_, schema) => E.right(schema),
58+
strict: (_, schema) => {
5859
if (schema.type !== 'object') {
5960
return E.left('exactC parameter must be object');
6061
}

0 commit comments

Comments
 (0)