pkg/schemas/loaders.go
Method HTTPLoader.Load
has 6 return statements (exceeds 4 allowed). Open
Open
func (l *HTTPLoader) Load(uri, parentURI string) (*Schema, error) {
u, err := url.Parse(uri)
if err != nil {
return nil, fmt.Errorf("failed to parse url: %w", err)
}
Function QualifiedFileName
has 5 return statements (exceeds 4 allowed). Open
Open
func QualifiedFileName(fileName, parentFileName string, resolveExtensions []string) (string, error) {
r, err := GetRefType(fileName)
if err != nil {
return "", err
}