pkg/util/jsonschema/jsonschema.go
Function Validate
has 6 return statements (exceeds 4 allowed). Open
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: