But I don't understand the type casting. The generateZodClientFromOpenAPI method expects an OpenAPIObject doc (openapi3-ts) while SwaggerParser provides an OpenAPI.Document doc (openapi-types).
Also, this type casting doesn't work with openapi3-ts latest version.
Hi!
I'm using the package programmatically as shown here https://github.com/astahmer/openapi-zod-client/blob/main/examples/basic/petstore-generator.ts
But I don't understand the type casting. The
generateZodClientFromOpenAPI
method expects anOpenAPIObject
doc (openapi3-ts
) while SwaggerParser provides anOpenAPI.Document
doc (openapi-types
).Also, this type casting doesn't work with
openapi3-ts
latest version.Would it be possible to use SwaggerParser types?
Thanks!