From c60716843bb1b2618ee2690d143f8183b20ae454 Mon Sep 17 00:00:00 2001 From: Anton Averchenkov Date: Mon, 19 Feb 2024 12:26:22 -0500 Subject: [PATCH 1/2] openapi: Fix response fields for rekey operations --- vault/logical_system_paths.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/vault/logical_system_paths.go b/vault/logical_system_paths.go index 2aee94009b8a..50e6bb43c898 100644 --- a/vault/logical_system_paths.go +++ b/vault/logical_system_paths.go @@ -739,12 +739,12 @@ func (b *SystemBackend) configPaths() []*framework.Path { func (b *SystemBackend) rekeyPaths() []*framework.Path { respFields := map[string]*framework.FieldSchema{ - "nounce": { + "nonce": { Type: framework.TypeString, Required: true, }, "started": { - Type: framework.TypeString, + Type: framework.TypeBool, Required: true, }, "t": { @@ -984,7 +984,7 @@ func (b *SystemBackend) rekeyPaths() []*framework.Path { http.StatusOK: {{ Description: "OK", Fields: map[string]*framework.FieldSchema{ - "nounce": { + "nonce": { Type: framework.TypeString, Required: true, }, @@ -992,7 +992,7 @@ func (b *SystemBackend) rekeyPaths() []*framework.Path { Type: framework.TypeBool, }, "started": { - Type: framework.TypeString, + Type: framework.TypeBool, }, "t": { Type: framework.TypeInt, @@ -1061,12 +1061,12 @@ func (b *SystemBackend) rekeyPaths() []*framework.Path { http.StatusOK: {{ Description: "OK", Fields: map[string]*framework.FieldSchema{ - "nounce": { + "nonce": { Type: framework.TypeString, Required: true, }, "started": { - Type: framework.TypeString, + Type: framework.TypeBool, Required: true, }, "t": { @@ -1094,12 +1094,12 @@ func (b *SystemBackend) rekeyPaths() []*framework.Path { http.StatusOK: {{ Description: "OK", Fields: map[string]*framework.FieldSchema{ - "nounce": { + "nonce": { Type: framework.TypeString, Required: true, }, "started": { - Type: framework.TypeString, + Type: framework.TypeBool, Required: true, }, "t": { @@ -1128,7 +1128,7 @@ func (b *SystemBackend) rekeyPaths() []*framework.Path { http.StatusOK: {{ Description: "OK", Fields: map[string]*framework.FieldSchema{ - "nounce": { + "nonce": { Type: framework.TypeString, Required: true, }, From 2a8e81408904de5254f44163a602518f654ebfc4 Mon Sep 17 00:00:00 2001 From: Anton Averchenkov Date: Mon, 19 Feb 2024 12:34:20 -0500 Subject: [PATCH 2/2] changelog --- changelog/25509.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/25509.txt diff --git a/changelog/25509.txt b/changelog/25509.txt new file mode 100644 index 000000000000..e668d1903dc0 --- /dev/null +++ b/changelog/25509.txt @@ -0,0 +1,3 @@ +```release-note:bug +openapi: Fixing response fields for rekey operations +```