And if you like Zod, you might as well use this: https://github.com/asteasolutions/zod-to-openapi
It converts Zod types to OpenAPI specification.
It converts Zod types to OpenAPI specification.
Json schema is more universal, and it can be used in .NET, Java, etc.