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

openapi: Fix response fields for rekey operations #25509

Merged
merged 3 commits into from
Feb 21, 2024
Merged

openapi: Fix response fields for rekey operations #25509

merged 3 commits into from
Feb 21, 2024

Conversation

averche
Copy link
Contributor

@averche averche commented Feb 19, 2024

Fixing the response fields to match the correct names and types declared in http/sys_rekey.go:

vault/http/sys_rekey.go

Lines 369 to 371 in 633dae1

type RekeyStatusResponse struct {
Nonce string `json:"nonce"`
Started bool `json:"started"`

Fixing this and releasing the corresponding openapi.json should resolve hashicorp/vault-client-go#251

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Feb 19, 2024
Copy link

github-actions bot commented Feb 19, 2024

CI Results:
All Go tests succeeded! ✅

Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@dhuckins dhuckins left a comment

Choose a reason for hiding this comment

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

lgtm

how did this make it past our ci check tho?

@averche
Copy link
Contributor Author

averche commented Feb 21, 2024

how did this make it past our ci check tho?

Unfortunately, I don't think we have any schema tests for Rekey requests. I believe its because the code is fairly old and does not follow the more modern sdk/framework conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot unmarshal into Go struct RekeyAttemptReadProgressResponse
2 participants