hashicorp / vault-client-go

HashiCorp Vault Go Client Library generated from OpenAPI spec.
Mozilla Public License 2.0
84 stars 17 forks source link

Cannot unmarshal into Go struct RekeyAttemptReadProgressResponse #251

Closed SEANDOUGHTY closed 9 months ago

SEANDOUGHTY commented 9 months ago

Expected Behavior

The RekeyAttemptReadProgressResponse should be getting unmarshlled into a bool.

Current Behavior

It is attempting to unmarshal into a string and failing.

Failure Information

Please include the version of Vault binary and the version of vault-client-go you're using.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

Run this code:

res, err := r.client.System.RekeyAttemptReadProgress(ctx)

And you will get the following error:

json: cannot unmarshal bool into Go struct field RekeyAttemptReadProgressResponse.started of type string

Additional Information

Additional information including exception details, stack trace, etc.