We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ea38e commit 1bf53bbCopy full SHA for 1bf53bb
packages/openapi-ts/src/plugins/zod/v3/plugin.ts
@@ -258,7 +258,7 @@ const enumTypeToZodSchema = ({
258
});
259
} else if (literalMembers.length === 1) {
260
// For single-member unions, use the member directly instead of wrapping in z.union()
261
- enumExpression = literalMembers[0];
+ enumExpression = literalMembers[0]!;
262
} else {
263
enumExpression = tsc.callExpression({
264
functionName: tsc.propertyAccessExpression({
0 commit comments