mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
OpenAPI - Don't panic if field isn't found (#10929)
This commit is contained in:
@@ -257,6 +257,10 @@ func documentPath(p *Path, specialPaths *logical.Paths, backendType logical.Back
|
||||
location := "path"
|
||||
required := true
|
||||
|
||||
if field == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if field.Query {
|
||||
location = "query"
|
||||
required = false
|
||||
|
||||
4
vendor/github.com/hashicorp/vault/sdk/framework/openapi.go
generated
vendored
4
vendor/github.com/hashicorp/vault/sdk/framework/openapi.go
generated
vendored
@@ -257,6 +257,10 @@ func documentPath(p *Path, specialPaths *logical.Paths, backendType logical.Back
|
||||
location := "path"
|
||||
required := true
|
||||
|
||||
if field == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if field.Query {
|
||||
location = "query"
|
||||
required = false
|
||||
|
||||
Reference in New Issue
Block a user