* Fix #1810 * Remove go embed * Format code * Remove useless code Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
@@ -17,7 +17,12 @@ func GoValidateApi(c *cli.Context) error {
|
||||
return errors.New("missing -api")
|
||||
}
|
||||
|
||||
_, err := parser.Parse(apiFile)
|
||||
spec, err := parser.Parse(apiFile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = spec.Validate()
|
||||
if err == nil {
|
||||
fmt.Println(aurora.Green("api format ok"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user