Skip to content

Commit

Permalink
openapi: Fix response fields for rekey operations (#25509)
Browse files Browse the repository at this point in the history
  • Loading branch information
averche authored Feb 21, 2024
1 parent 8af67e1 commit 7ecaca0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions changelog/25509.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
openapi: Fixing response fields for rekey operations
```
18 changes: 9 additions & 9 deletions vault/logical_system_paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -984,15 +984,15 @@ func (b *SystemBackend) rekeyPaths() []*framework.Path {
http.StatusOK: {{
Description: "OK",
Fields: map[string]*framework.FieldSchema{
"nounce": {
"nonce": {
Type: framework.TypeString,
Required: true,
},
"complete": {
Type: framework.TypeBool,
},
"started": {
Type: framework.TypeString,
Type: framework.TypeBool,
},
"t": {
Type: framework.TypeInt,
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 7ecaca0

Please sign in to comment.