mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
[VAULT-5813] Remove duplicate sha_256 in SystemCatalogRequest OAS (#15163)
This commit is contained in:
@@ -336,6 +336,12 @@ func documentPath(p *Path, specialPaths *logical.Paths, requestResponsePrefix st
|
||||
}
|
||||
|
||||
for name, field := range bodyFields {
|
||||
// Removing this field from the spec as it is deprecated in favor of using "sha256"
|
||||
// The duplicate sha_256 and sha256 in these paths cause issues with codegen
|
||||
if name == "sha_256" && strings.Contains(path, "plugins/catalog/") {
|
||||
continue
|
||||
}
|
||||
|
||||
openapiField := convertType(field.Type)
|
||||
if field.Required {
|
||||
s.Required = append(s.Required, name)
|
||||
|
||||
Reference in New Issue
Block a user