Skip to content

Commit

Permalink
Minor: reasoning.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Apr 1, 2024
1 parent af3aa08 commit 4989ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/documentation-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const depictEnum: Depicter<
export const depictLiteral: Depicter<z.ZodLiteral<unknown>> = ({
schema: { value },
}) => ({
type: getSupportedType(value),
type: getSupportedType(value), // constructor allows z.Primitive only, but ZodLiteral does not have that constrant
const: value,
});

Expand Down

0 comments on commit 4989ce7

Please sign in to comment.