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

Expose multiple predefined templates

narakhan opened this issue · comments

There are several common usecases which the library could add first-party template support for, one example being the already written schemas-only.hbs template. This functionality would slot into the existing CLI/API simply by modifying templatePath to be of the type undefined | "schemas-only" | ... | string and extending the existing TS-Pattern match statement to check for the literal strings of the predefined templates.

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