mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
openapi: Add default values to the thing_mount_path parameters (#18935)
This commit is contained in:
committed by
GitHub
parent
aa5653a88c
commit
6a9ca261d1
@@ -910,6 +910,9 @@ func (d *OASDocument) CreateOperationIDs(context string) {
|
||||
continue
|
||||
}
|
||||
|
||||
// Discard "_mount_path" from any {thing_mount_path} parameters
|
||||
path = strings.Replace(path, "_mount_path", "", 1)
|
||||
|
||||
// Space-split on non-words, title case everything, recombine
|
||||
opID := nonWordRe.ReplaceAllString(strings.ToLower(path), " ")
|
||||
opID = strings.Title(opID)
|
||||
|
||||
Reference in New Issue
Block a user