Open georgesmith46 opened 3 weeks ago
@georgesmith46 Can you describe your use case? The feedback I've gotten previously on this feature was that it's useless without actually transforming the values
I generate zod schemas from these type files which handles the transform. I just found #876 though which may achieve the same result
@georgesmith46 In the meantime, you could always disable the transformer by overriding it with null/undefined. Are you able to share an example Zod schema where you do this transform?
So this is for a service, the OpenAPI document is the source of truth and then the types/zod schemas are generated from the document.
I'm using ts-to-zod to generate the zod schemas after generating the types. I then use these schemas to parse incoming requests and coerce the ISO dates into date objects.
Description
When using the new plugins config, I am unable to use the date transformer without also creating the transformer functions. I only need the types for my use case. This was possible in versions <0.54.0
Example OpenAPI document
v0.53.11
v0.54.1
Is there a way to get the same output as v0.53.11 in the new plugins config?