TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A tool to visualise Zod validation errors

17 pointsby disintegrator8 months ago
I work on code generator that creates TypeScript SDKs from OpenAPI specs and Zod (<a href="https:&#x2F;&#x2F;zod.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zod.dev&#x2F;</a>) is a critical building block that I chose to power runtime validation in those SDKs. Depending on the complexity of a Zod schema, the resulting validation error message can contain a wall of JSON text - the serialised issues that were recorded during validation.<p>I wanted to try and create a small tool to help me better visualise and parse these errors. In code and the command line, we do also have the ability to pretty-print the errors but I still wanted a web UI which can let me share URLs for visualised errors.<p>I&#x27;m still iterating on it but would love any feedback if you do get to try it out.

1 comment

LukeHagar8 months ago
I love it!<p>Zod is such a great tool but its errors can be a bit hard to parse.<p>Reminds me a lot of <a href="https:&#x2F;&#x2F;github.com&#x2F;yoavbls&#x2F;pretty-ts-errors">https:&#x2F;&#x2F;github.com&#x2F;yoavbls&#x2F;pretty-ts-errors</a><p>Disclaimer: I work with OP