Skip to content

Support custom client package names #123

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

Closed
emann opened this issue Aug 4, 2020 · 0 comments · Fixed by #133
Closed

Support custom client package names #123

emann opened this issue Aug 4, 2020 · 0 comments · Fixed by #133
Labels
✨ enhancement New feature or improvement
Milestone

Comments

@emann
Copy link
Collaborator

emann commented Aug 4, 2020

Is your feature request related to a problem? Please describe.
Currently the name of the generated project is simply

self.project_name: str = f"{openapi.title.replace(' ', '-').lower()}-client"

with the generated module bearing the same name but with - replaced with _. It would be nice to be able to specify a custom name for the project, which would then propagate to the naming of the package.

Describe the solution you'd like
Add a config option called client_project_name_override, which is checked before falling back on the current naming convention

@emann emann added the ✨ enhancement New feature or improvement label Aug 4, 2020
@dbanty dbanty added this to the 0.5.2 milestone Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants