Skip to content

Fixed createObjectStorageKeys response #324

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

Merged

Conversation

victoriaroan
Copy link
Collaborator

Reported in linode/linode-cli#199.

Creating a new object storage key with linode-cli did not return any response. allOf does not appear to be valid in a response (https://swagger.io/docs/specification/describing-responses/ mentions anyOf and oneOf, but not allOf.)

Adding the secret_key property back to the ObjectStorageKey schema and removing it from the response schema for createObjectStorageKeys fixes that and allows linode-cli to return the secret key of the newly created key. For all other requests, the secret key is returned as [REDACTED].

To test, check out this branch locally, check out linode-cli, then run make build SPEC=<path_to>/linode-api-docs/openapi.yaml in the linode-cli directory. Running python3 -m linodecli object-storage keys-create in the linode-cli directory should now return the secret key.

Copy link
Collaborator

@Dorthu Dorthu left a comment

Choose a reason for hiding this comment

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

Fixes CLI 💯

Copy link
Contributor

@patthiel patthiel left a comment

Choose a reason for hiding this comment

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

👍 👍 Confirmed on my end this does the needful!

@patthiel
Copy link
Contributor

@leslitagordita any chance we can merge this into the upcoming release?

@leslitagordita
Copy link
Contributor

@patthiel Yes, this will go out on Monday!

@victoriaroan
Copy link
Collaborator Author

@leslitagordita which branch should I target for this merge?

@leslitagordita
Copy link
Contributor

@victoriaroan development is great! I'll get this out with everything else for Monday's release and then cut a release branch.

@patthiel patthiel merged commit 2f3cf5e into linode:development Sep 15, 2020
@victoriaroan victoriaroan deleted the bug/show-obj-secret-key-on-create branch September 15, 2020 21:34
LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
…ket.io-2.4.1

Bump socket.io from 2.3.0 to 2.4.1
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.

4 participants