-
Notifications
You must be signed in to change notification settings - Fork 13
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
Provide a way to specify the generated names #56
Comments
I'm having a similar problem for a FastApi generated OpenApi schema. |
Hmm. I would think about it two ways:
{
"getApiV1OrganizationByOrganizationIdDepartments": "getOrganization",
"getApiV2OrganizationByOrganizationIdDepartments": false
} Where the |
@phryneas I would prefer option two her - preferably integrated in a configuration file. |
I would also opt for the second option. That would really help as right now I'm basically re-exporting them myself with pretty names, but the 'old' hook-names are still available! The first option won't do, as many times we're forced to consume a 3rd party api, so we're unable to change those api's |
Isn't "first" option already supported with (uses |
Same here. My OpenApi3.json about 15k rows, and i got the result: ``json
`` i can't use this ;( -- if PathVariable does not match it throw an error, but not really informative ``json
`` Error: path parameter role does not seem to be defined? ofc i have found ) that type on 10k row... but in manual mode ;) |
Love the generator, it is speeding up my workflow like crazy, so first off - thanks for that.
I'm using a .NET Core api, that provides me with nice OpenApi spec docs, that work perfectly with the codegenerator, however:
The names it generates for types, args, and endpoints is a bit verbose.
I've got an api defined as following:
This resolves to:
Hook:
useGetApiV1OrganizationByOrganizationIdDepartmentsQuery
Endpoint:
As you can see these names are bit verbose, and I'd like more control over them without having to change my Api endpoints. Perhaps it's possible to override part of the generated name? I like the prefix/suffix options, but those won't do (unless you want an even longer string).
I'd like to be able to either provide a custom function for naming. In this case I'd like to be able to transform
getApiV1OrganizationByOrganizationIdDepartments
intogetOrganizationDepartments
The text was updated successfully, but these errors were encountered: