Skip to content

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 ezilber-akamai and ykim-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