diff --git a/changelog/15163.txt b/changelog/15163.txt new file mode 100644 index 000000000..337a27937 --- /dev/null +++ b/changelog/15163.txt @@ -0,0 +1,3 @@ +```release-note:bug +sdk: Fix OpenApi spec generator to remove duplicate sha_256 parameter +``` \ No newline at end of file diff --git a/sdk/framework/openapi.go b/sdk/framework/openapi.go index 717a6505d..2c3377f50 100644 --- a/sdk/framework/openapi.go +++ b/sdk/framework/openapi.go @@ -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)