diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e3f91b8..6c89cdec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to ## Unreleased ([diff][unreleased-diff]) +## [0.3.3][] ([diff][0.3.3-diff]) - 2023-05-26 + +### Fixed + +- Fixed PkiListResponse encoding issue (#175) + ## [0.3.2][] ([diff][0.3.2-diff]) - 2023-05-16 ### Added @@ -93,7 +99,9 @@ and this project adheres to [unreleased-diff]: - https://github.com/hashicorp/vault-client-go/compare/v0.3.2...HEAD + https://github.com/hashicorp/vault-client-go/compare/v0.3.3...HEAD +[0.3.3-diff]: + https://github.com/hashicorp/vault-client-go/compare/v0.3.2...v0.3.3 [0.3.2-diff]: https://github.com/hashicorp/vault-client-go/compare/v0.3.1...v0.3.2 [0.3.1-diff]: @@ -109,6 +117,7 @@ and this project adheres to +[0.3.3]: https://github.com/hashicorp/vault-client-go/releases/tag/v0.3.3 [0.3.2]: https://github.com/hashicorp/vault-client-go/releases/tag/v0.3.2 [0.3.1]: https://github.com/hashicorp/vault-client-go/releases/tag/v0.3.1 [0.3.0]: https://github.com/hashicorp/vault-client-go/releases/tag/v0.3.0 diff --git a/client.go b/client.go index 7964af55..225895af 100644 --- a/client.go +++ b/client.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/go-retryablehttp" ) -const ClientVersion = "0.3.2" +const ClientVersion = "0.3.3" // Client manages communication with Vault, initialize it with vault.New(...) type Client struct { diff --git a/docs/PkiListRolesResponse.md b/docs/PkiListRolesResponse.md index 66a6413e..604e028f 100644 --- a/docs/PkiListRolesResponse.md +++ b/docs/PkiListRolesResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Keys** | Pointer to **map[string]interface{}** | List of keys | [optional] +**Keys** | Pointer to **[]string** | List of roles | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetKeys -`func (o *PkiListRolesResponse) GetKeys() map[string]interface{}` +`func (o *PkiListRolesResponse) GetKeys() []string` GetKeys returns the Keys field if non-nil, zero value otherwise. ### GetKeysOk -`func (o *PkiListRolesResponse) GetKeysOk() (*map[string]interface{}, bool)` +`func (o *PkiListRolesResponse) GetKeysOk() (*[]string, bool)` GetKeysOk returns a tuple with the Keys field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKeys -`func (o *PkiListRolesResponse) SetKeys(v map[string]interface{})` +`func (o *PkiListRolesResponse) SetKeys(v []string)` SetKeys sets Keys field to given value. diff --git a/generate/config.yaml b/generate/config.yaml index 1366a58e..435431c1 100644 --- a/generate/config.yaml +++ b/generate/config.yaml @@ -3,5 +3,5 @@ additionalProperties: packageName: vault - packageVersion: 0.3.2 + packageVersion: 0.3.3 diff --git a/openapi.json b/openapi.json index 90d93f11..53847803 100644 --- a/openapi.json +++ b/openapi.json @@ -36715,9 +36715,11 @@ "type": "object", "properties": { "keys": { - "type": "object", - "description": "List of keys", - "format": "map" + "type": "array", + "description": "List of roles", + "items": { + "type": "string" + } } } }, diff --git a/schema/model_pki_list_roles_response.go b/schema/model_pki_list_roles_response.go index 742ab85f..0154bab9 100644 --- a/schema/model_pki_list_roles_response.go +++ b/schema/model_pki_list_roles_response.go @@ -7,8 +7,8 @@ package schema // PkiListRolesResponse struct for PkiListRolesResponse type PkiListRolesResponse struct { - // List of keys - Keys map[string]interface{} `json:"keys,omitempty"` + // List of roles + Keys []string `json:"keys,omitempty"` } // NewPkiListRolesResponseWithDefaults instantiates a new PkiListRolesResponse object