Igor Savin

Results 605 comments of Igor Savin

1.2.0 is out now. Sorry for the delay

You need to use .coerce for query and path params, as these always are passed as strings, because fastify has no way to establish their true type

@turkerdev finishing PR for https://github.com/turkerdev/fastify-type-provider-zod/issues/6, can try doing this afterwards, but I can't find any examples on how preprocess is supposed to be used, do you maybe have some knowledge...

@turkerdev Here are my findings: https://github.com/colinhacks/zod/issues/1316 I don't think that this can/should be implemented on the type-provider side.

When you are using zod, you are no longer using ajv, so yes

it uses zod's serializer and validator instead of ajv's json schema conversion is only for openapi doc generation purposes

note the schema.parse part. this is zod parsing

@thorhj can you send a PR with test?

Note that we wrote zod coercion library at Lokalise, we will try to open source it ASAP