OpenAPI - Don't panic if field isn't found (#10929)

This commit is contained in:
Michael Golowka
2021-02-17 15:45:45 -07:00
committed by GitHub
parent 3736e30815
commit 2c671147ec
2 changed files with 8 additions and 0 deletions

View File

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

View File

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