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

The getOperationId method requires a custom generated method #935

Open
liub1934 opened this issue Feb 16, 2025 · 3 comments
Open

The getOperationId method requires a custom generated method #935

liub1934 opened this issue Feb 16, 2025 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@liub1934
Copy link

Hello, the getOperationId method can be extended to support passing in a method to custom generate OperationId.
We may need to personalize an OperationId according to our own generation rules.

@erunion
Copy link
Member

erunion commented Feb 17, 2025

Hi! I'm not completely following you, what would you like us to change about the getOperationId method?

@erunion erunion added the question Further information is requested label Feb 17, 2025
@liub1934
Copy link
Author

Hi! I'm not completely following you, what would you like us to change about the getOperationId method?

The getOperationId method supports passing in a custom method to return a new OperationId, for example:

getOperationId({
  customFun: (operation) => {
     return `` // Compose yourself to generate a new OperationId
  }
})

@erunion
Copy link
Member

erunion commented Feb 21, 2025

If you're up for submitting a PR for that to us we'd happily pull it in!

@erunion erunion added enhancement New feature or request and removed question Further information is requested labels Feb 21, 2025
@erunion erunion added the help wanted Extra attention is needed label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants