openapi: Fix response fields for rekey operations (#25509)

This commit is contained in:
Anton Averchenkov 2024-02-21 14:13:47 -05:00 committed by GitHub
parent 8af67e1639
commit 7ecaca0bb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 9 deletions

3
changelog/25509.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:bug
openapi: Fixing response fields for rekey operations
```

View file

@ -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,
},