Skip to content

Conversation

CSantosM
Copy link

@CSantosM CSantosM commented Feb 3, 2025

Description:

This PR introduces the ability to customize the export name of the API client constructor in the Handlebars (.hbs) template. Previously, the constructor function was exported with a fixed name, limiting flexibility in different use cases. Now, the export name is dynamically assigned based on options.apiClientConstructorName, with a default fallback (createApiClient), maintaining the original fixed name when no custom name is provided when no custom name is provided.

Motivation:
This change allows developers to specify a custom name for the API client constructor, improving integration flexibility.

Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openapi-zod-client-rim4 ❌ Failed (Inspect) Feb 3, 2025 11:07am

feat: add apiClientConstructorName to default option values

feat: enhance API client export to support customizable constructor name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant