Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invalid_literal ZodIssueCode to documentation #3602

Open
ghidalgo93 opened this issue Jun 28, 2024 · 0 comments
Open

Add invalid_literal ZodIssueCode to documentation #3602

ghidalgo93 opened this issue Jun 28, 2024 · 0 comments

Comments

@ghidalgo93
Copy link

Hello there, new to zod and super happy with it, thank you so much for your work!

As I was playing around with implementing zod into my ts projects I realized I was getting some invalid_literal error codes in my zod issues array (mostly in union validation errors). I tried looking up the invalid_literal code in the general project gh docs as well as your error handling docs to see what extra fields I can expect and it seems to be missing from those docs. I do see this error code in the source code so I'm assuming I didn't find a bug, just possibly some missing docs.

Figured I'd bring it up in case you weren't aware or in the case I'm missing/confused about how the invalid_literal code is supposed to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant