Skip to content

Commit 9382e4b

Browse files
committed
minor: todo.
1 parent 390953b commit 9382e4b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

express-zod-api/src/documentation-helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const depictBuffer: Depicter = ({ jsonSchema }) => ({
112112
},
113113
});
114114

115+
/** @todo use def.discriminator instead */
115116
export const depictUnion: Depicter = ({ zodSchema, jsonSchema }) => {
116117
/** @since Zod 3.25.35, there was "disc" property before */
117118
if (!zodSchema._zod.propValues) return jsonSchema;

0 commit comments

Comments
 (0)