tsed icon indicating copy to clipboard operation
tsed copied to clipboard

Interop and adapters for Zod/Valibot/Yup, etc.

Open Romakita opened this issue 3 months ago • 3 comments

Objective

Provide type-safe adapters/importers for third-party schema libraries (Zod, Valibot, Yup, etc.), ensuring type inference matches expectations.

Details

  • Implement adapter utilities at the type level.
  • Ensure runtime compatibility and document limitations.
  • Offer migration and interop guidance for users.

Parent Epic: schema-inference-epic

Romakita avatar Oct 12 '25 09:10 Romakita

Hey @Romakita i would love to work on this issue, should i start and raise PR? or it's already fixed

nikhil008-git avatar Oct 25 '25 18:10 nikhil008-git

No, isn’t implemented.

The main idea is to allows the following usage: @Schema(zodschema)

Note: @Schema decorator accept any json schema by default ;)

Romakita avatar Oct 25 '25 19:10 Romakita

@Romakita hey only implementing the @schema(zodschema) would be good enough right. i'll be implementing this so decorators accept the zod to json schema format

nikhil008-git avatar Oct 26 '25 05:10 nikhil008-git