astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)

Home Page:openapi-zod-client.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Templates for non-default groupStrategy are broken

narakhan opened this issue · comments

Both default.hbs and grouped.hbs are currently broken when multiple Zodios Api objects are defined.

Additionally the grouped template doesn't import the ZodiosOptions type, looks like the createApiClient was blindly copied from the default template. Probably a good idea to add integration tests which verify the groupStrategy functionality, checking for valid typescript with no errors for petstore-minimal.json would probably be sufficient.

good catch ! and yes, integrations tests would be nice to have

feel free to open a PR for that (with a changeset)