We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21daeb3 commit 707429fCopy full SHA for 707429f
schema/schema.go
@@ -135,7 +135,7 @@ func Load(source string) (*Schema, error) {
135
case strings.HasPrefix(source, "http://"):
136
case strings.HasPrefix(source, "https://"):
137
default:
138
- if strings.Index(source, "://") < 0 {
+ if !strings.Contains(source, "://") {
139
source, err = filepath.Abs(source)
140
if err != nil {
141
return nil, fmt.Errorf("failed to get JSON schema absolute path for %s: %w",
0 commit comments