Skip to content

Commit 70d31cd

Browse files
Update src/openapi.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 77a76f7 commit 70d31cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/openapi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ export const unwrapSchema = (
540540
// @ts-ignore
541541
if (schema['~standard']?.jsonSchema?.[io])
542542
// @ts-ignore
543-
return schema['~standard']?.jsonSchema?.[io]?.({
543+
return enumToOpenApi(schema['~standard'].jsonSchema[io]({
544544
target: 'draft-2020-12'
545-
})
545+
}))
546546

547547
switch (vendor) {
548548
case 'zod':

0 commit comments

Comments
 (0)