Skip to content

Commit

Permalink
encoding/jsonschema: fix printing of error message
Browse files Browse the repository at this point in the history
Change-Id: I19988edaa062f6fde0f1dcf988fb62395e827078
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6324
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
  • Loading branch information
mpvl committed Jun 16, 2020
1 parent f5315d4 commit eb7706b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding/jsonschema/constraints.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ var constraints = []*constraint{
obj := s.object(n)

if n.Kind() != cue.StructKind {
s.errf(n, `"properties" expected an object, found %v`, n.Kind)
s.errf(n, `"properties" expected an object, found %v`, n.Kind())
}

s.processMap(n, func(key string, n cue.Value) {
Expand Down

0 comments on commit eb7706b

Please sign in to comment.