Skip to content

Conversation

sphterry
Copy link
Contributor

@sphterry sphterry commented Aug 1, 2025

Proposed changes

Following discussions on accommodating customer experience with Operation ID overrides, the logic has been updated to:

  • Support x-xgen-method-verb-override usage on non-custom methods This change allows for nouns that do not appear in the resource path to be included in the Operation ID. ie: getGroupStream -> getGroupStreamInstance
  • Allow x-xgen-operation-id-override to be present on any length of Operation Id. This override is still required for ids of length > 4, but now it can also be used to change shorter ids. ie: getGroupStreamInstance -> getStreamInstance.

Jira ticket: CLOUDP-335029

@sphterry sphterry requested a review from a team as a code owner August 1, 2025 09:41
@sphterry sphterry enabled auto-merge (squash) August 1, 2025 09:43
*/
export function hasMethodVerbOverride(object, verb) {
return hasVerbOverride(object) && object[VERB_OVERRIDE_EXTENSION].verb === verb;
return hasVerbOverride(object) && object[VERB_OVERRIDE_EXTENSION].verb.startsWith(verb);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit] Can you update the description of the function as well?

@sphterry sphterry merged commit 9e8cb9f into main Aug 1, 2025
10 checks passed
@sphterry sphterry deleted the CLOUDP-335029 branch August 1, 2025 10:14
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.

2 participants