Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/openapi-ts/src/plugins/zod/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,14 @@
}),
});
break;
case 'byte':
stringExpression = compiler.callExpression({
functionName: compiler.propertyAccessExpression({
expression: stringExpression,
name: compiler.identifier({ text: 'base64' }),
}),
});
break;

Check warning on line 514 in packages/openapi-ts/src/plugins/zod/plugin.ts

View check run for this annotation

Codecov / codecov/patch

packages/openapi-ts/src/plugins/zod/plugin.ts#L507-L514

Added lines #L507 - L514 were not covered by tests
case 'date':
case 'email':
case 'time':
Expand Down