OpenAPITools / OpenAPITools/openapi-generator
Generated API method name without prefix, postfix
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Good morning,
my swagger json is without operationId.. (I cannot change it, it is from external company).. It looks this way:
And method generated by openapitool looks this way: backEndAdministrationGetTenantRolesAndGroupsPost.
Is there any way, any customization, that method would have name like GetTenantRolesAndGroups?
BR Martin
"paths": {
"/BackEnd/Administration/GetTenantRolesAndGroups": {
"post": {
"tags": [
"Administration"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/UserRoleViewModel"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserRoleViewModel"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/UserRoleViewModel"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
},
"application/json": {
"schema": {
"type": "string"
}
},
"text/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, generator target, or test is identified in the issue. Start by determining which generator and language target produce the shown method, then trace operation-name generation for the path and define a focused regression test; done means the configured output uses GetTenantRolesAndGroups without the path-derived prefix or suffix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100