horizoncd/horizon

View on GitHub
pkg/util/jsonschema/jsonschema.go

Summary

Maintainability
A
40 mins
Test Coverage
C
70%

Function Validate has 6 return statements (exceeds 4 allowed).
Open

func Validate(schema, document interface{}, setUnevaluatedPropertiesToFalse bool) error {
    // change schema type to Golang map
    var schemaMap map[string]interface{}
    switch schema := schema.(type) {
    case string:
Severity: Major
Found in pkg/util/jsonschema/jsonschema.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status