Skip to content

Commit

Permalink
Allow any type in "examples" (section 10.4) (a-h#60)
Browse files Browse the repository at this point in the history
See a-h#59
  • Loading branch information
yvesf authored and a-h committed Mar 12, 2019
1 parent 8a14529 commit e59c34d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsonschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ type Schema struct {
// https://json-schema.org/draft-07/json-schema-validation.html#rfc.section.10.2
Default interface{}

Examples []string
// Examples ...
// https://json-schema.org/draft-07/json-schema-validation.html#rfc.section.10.4
Examples []interface{}

// Reference is a URI reference to a schema.
// https://json-schema.org/draft-07/json-schema-core.html#rfc.section.8
Expand Down

0 comments on commit e59c34d

Please sign in to comment.