Skip to content

Error on missing x-linode-cli-command extension; log when operationId is used for action#757

Merged
lgarber-akamai merged 4 commits intolinode:devfrom
lgarber-akamai:new/fail-on-ungrouped-command
Apr 11, 2025
Merged

Error on missing x-linode-cli-command extension; log when operationId is used for action#757
lgarber-akamai merged 4 commits intolinode:devfrom
lgarber-akamai:new/fail-on-ungrouped-command

Conversation

@lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Apr 7, 2025

📝 Description

This pull request adds logic to raise an error if an OpenAPI path has CLI-enabled actions but does not specify an x-linode-cli-command extension. This is necessary because we've recently had OpenAPI specification release candidates make it very far down the pipeline before commands misgrouped under default are discovered, which is not intentionally used by any existing commands.

This pull request also adds a new log entry that occurs when the x-linode-cli-action extension is not specified and the operationId is used as a failover.

✔️ How to Test

The following test steps assume you have pulled down this PR locally and run make install.

Unit Testing

make test-unit

@lgarber-akamai lgarber-akamai added the improvement for improvements in existing functionality in the changelog. label Apr 7, 2025
@lgarber-akamai lgarber-akamai requested a review from a team as a code owner April 7, 2025 16:41
@lgarber-akamai lgarber-akamai requested review from ezilber-akamai and yec-akamai and removed request for a team April 7, 2025 16:41
Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

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

Works well on my end!

Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

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

LGTM!

@lgarber-akamai lgarber-akamai merged commit 740353d into linode:dev Apr 11, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement for improvements in existing functionality in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants