Skip to content

Looking for a default Handlebars template that includes schemas, types, and export helpers #340

@heinsenberg82

Description

@heinsenberg82

Sorry if this is a noob question (I’m especially a noob when it comes to handlebars), but I’m trying to make the output to export not only the schemas, but also the types. On this page (https://github.com/astahmer/openapi-zod-client/blob/main/examples/export-schemas-and-types-directly/schemas-and-types-directly.hbs), I found a template that does that. However, I also need the additional “standard” declarations, like all the endpoints, and

export const MyApi = new Zodios(endpoints);

or

export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
  return new Zodios(baseUrl, endpoints, options);
}

Is there any “default” Handlebars template that I can use as a base and customize as needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions