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 7301c34 commit c9b5d0eCopy full SHA for c9b5d0e
schema/validate.go
@@ -2,7 +2,7 @@ package main
2
3
import (
4
"fmt"
5
- "io/ioutil"
+ "io"
6
"os"
7
"path/filepath"
8
"strings"
@@ -61,7 +61,7 @@ func main() {
61
}
62
documentLoader = gojsonschema.NewReferenceLoader("file://" + documentPath)
63
} else {
64
- documentBytes, err := ioutil.ReadAll(os.Stdin)
+ documentBytes, err := io.ReadAll(os.Stdin)
65
if err != nil {
66
fmt.Println(err)
67
os.Exit(1)
0 commit comments