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

Account for edge case where apiVersion param has no default #678

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented Nov 8, 2024

📝 Description

This pull request adds logic to account for an edge case where the apiVersion parameter exists but has no defined default, causing OpenAPIOperation._resolve_api_version(...) to fail. This error is occurring when building against a pre-release version of the OpenAPI spec.

✔️ How to Test

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

Unit Testing

make testunit

Manual Testing

  1. Manually bundle the Linode OpenAPI specification from the latest commit in the internal documentation repository.
  2. Build and install the Linode CLI using the newly bundled spec:
make SPEC=/path/to/my/bundled/spec.json install
  1. Ensure the CLI builds and installs successfully.

@lgarber-akamai lgarber-akamai added the bugfix for any bug fixes in the changelog. label Nov 8, 2024
@lgarber-akamai lgarber-akamai marked this pull request as ready for review November 8, 2024 20:51
@lgarber-akamai lgarber-akamai requested a review from a team as a code owner November 8, 2024 20:51
@lgarber-akamai lgarber-akamai requested review from ykim-akamai and ezilber-akamai and removed request for a team November 8, 2024 20:51
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.

Unit and manual testing worked properly. Nice work!

Copy link
Contributor

@ykim-akamai ykim-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, verified locally

@lgarber-akamai lgarber-akamai merged commit ec73e44 into linode:dev Nov 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants