Skip to content

Commit

Permalink
Update godoc of NewCompiler() fuction. (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
superstas committed Feb 6, 2024
1 parent 9e31c47 commit cee473f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func MustCompileString(url, schema string) *Schema {
}

// NewCompiler returns a json-schema Compiler object.
// if '$schema' attribute is missing, it is treated as draft7. to change this
// behavior change Compiler.Draft value
// If '$schema' attribute is missing, it uses the latest draft currently implemented by this library.
// To change this behavior change Compiler.Draft value
func NewCompiler() *Compiler {
return &Compiler{
Draft: latest,
Expand Down

0 comments on commit cee473f

Please sign in to comment.