[VAULT-5813] Remove duplicate sha_256 in SystemCatalogRequest OAS (#15163)
This commit is contained in:
parent
a06f9863e7
commit
2b5be0adec
|
@ -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 {
|
||||
// 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)
|
||||
|
|
Loading…
Reference in New Issue