Skip to content

Conversation

@sphterry
Copy link
Contributor

Proposed changes

Added a validation function, tests, and yamls for custom methods that use :action notation. Rules and tests are not enabled at this time (this will happen in CLOUDP-329722). This function will be extended to support an extension for legacy custom methods in following PR (CLOUDP-306294)

Jira ticket: CLOUDP-328960

For more details see the Technical Design

@sphterry sphterry requested a review from a team as a code owner July 10, 2025 10:26
@sphterry sphterry enabled auto-merge (squash) July 10, 2025 10:37
Comment on lines 19 to 24
let obj;
if (input.post) {
obj = input.post;
} else if (input.get) {
obj = input.get;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

How do we handle cases where the input is not post or get? (shouldn't happen if all endpoints follow the IPAs, but it's good to handle it gracefully in case it happens)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now, I can edit the PR to return in all other cases. When the support for the new extension is added, the logic for extracting the operationID will have to change to support all types of endpoints (ie: non-legacy, non-custom section of anticipated corrections)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can also consider to handle the list cases in the list rule, the get in the get rule etc. to keep the rules specific to the different methods

TY!

@sphterry sphterry disabled auto-merge July 10, 2025 10:48
@sphterry sphterry requested a review from lovisaberggren July 10, 2025 11:20
@sphterry sphterry enabled auto-merge (squash) July 10, 2025 11:20
@sphterry sphterry merged commit be928d6 into main Jul 10, 2025
8 checks passed
@sphterry sphterry deleted the CLOUDP-328960 branch July 10, 2025 12:36
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