|
|
|
@ -14,7 +14,7 @@ func main() { |
|
|
|
schemaPath := flag.String("path", filepath.Join("build", "schema.json"), "location of the converted schema") |
|
|
|
flag.Parse() |
|
|
|
schema := generator.Generate(&config.Configuration{}) |
|
|
|
if err := ioutil.WriteFile(*schemaPath, []byte(schema), 644); err != nil { |
|
|
|
if err := ioutil.WriteFile(*schemaPath, []byte(schema), 755); err != nil { |
|
|
|
log.Fatalf("could not write schema: %v", err) |
|
|
|
} |
|
|
|
} |
|
|
|
|