Skip to content

Commit

Permalink
fix: add missing error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 7, 2020
1 parent 171ac18 commit 43c1446
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/identities/validate.go
Expand Up @@ -44,6 +44,8 @@ func validateIdentityFile(fn string, c *client.OryKratos) []byte {

func validateIdentity(src string, fc []byte, c *client.OryKratos) {
swaggerSchema, err := pkger.Open("/.schema/api.swagger.json")
cmdx.Must(err, "Could not open swagger schema: %s", err)

schemaCompiler := jsonschema.NewCompiler()
err = schemaCompiler.AddResource("api.swagger.json", swaggerSchema)
cmdx.Must(err, "Could not get swagger schema: %s", err)
Expand Down

0 comments on commit 43c1446

Please sign in to comment.