Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to customize API client constructor name #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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