Skip to content

Commit 725e4a4

Browse files
committed
fix: fix broken enum types
1 parent b57f77a commit 725e4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const getScalar = (item: SchemaObject) => {
3939
return 'string | { name?: string; type?: string; uri: string }' + nullable;
4040
}
4141
if (item.enum) {
42-
return item.enum.join(`" | "`) + nullable;
42+
return `"${item.enum.join(`" | "`)}"` + nullable;
4343
}
4444
return 'string' + nullable;
4545

0 commit comments

Comments
 (0)