TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A tool to visualise Zod validation errors

17 点作者 disintegrator7 个月前
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

LukeHagar7 个月前
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