mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
[VAULT-5813] Remove duplicate sha_256 in SystemCatalogRequest OAS (#15163)
This commit is contained in:
3
changelog/15163.txt
Normal file
3
changelog/15163.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
sdk: Fix OpenApi spec generator to remove duplicate sha_256 parameter
|
||||||
|
```
|
||||||
@@ -336,6 +336,12 @@ func documentPath(p *Path, specialPaths *logical.Paths, requestResponsePrefix st
|
|||||||
}
|
}
|
||||||
|
|
||||||
for name, field := range bodyFields {
|
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)
|
openapiField := convertType(field.Type)
|
||||||
if field.Required {
|
if field.Required {
|
||||||
s.Required = append(s.Required, name)
|
s.Required = append(s.Required, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user