flock-community / zod-endpoints

Zod Router
MIT License
169 stars 7 forks source link

Deno library types are extremely broken #16

Open theoparis opened 2 years ago

theoparis commented 2 years ago

I tried to use the deno library and it complains a ton about type checking errors - I can't even show them all here...

image

Sadly I can't find a single other deno library that provides openapi schemas 😢

hastebrot commented 2 years ago

it works with deno and vscode using an older version of zod.

/deno/lib/deps.ts needs to import zod from https://deno.land/x/zod@v3.8.0/mod.ts.

here's an example project that uses an import_map.json: https://github.com/hastebrot/zod-endpoints-playground