Skip to content

Commit f93129a

Browse files
committed
feat: support t.readonlyArray
1 parent 76c48cd commit f93129a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/openapi-generator/src/knownImports.ts

Lines changed: 1 addition & 0 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');

0 commit comments

Comments
 (0)