Hi,
The following piece of code is returning json: cannot unmarshal number into Go value of type string:
secret, _, err := a.client.GetDynamicSecretValue(ctx).
Body(akeyless.GetDynamicSecretValue{
Name: name,
Token: &token,
}).Execute()
The json returned by the dynamic secret looks like this:
{
"access_token": "an-access-token",
"expiration": <number>
}
Strangely for me, this works using the akeyless-cli.
Would it be possible to have the Execute() function return map[string]any? Or maybe using generics like Execute()(T, error)?
Thanks.