mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
openapi: Fix response fields for rekey operations (#25509)
This commit is contained in:
parent
8af67e1639
commit
7ecaca0bb7
2 changed files with 12 additions and 9 deletions
3
changelog/25509.txt
Normal file
3
changelog/25509.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
openapi: Fixing response fields for rekey operations
|
||||
```
|
||||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue