Skip to content

Commit

Permalink
update draft
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Nov 7, 2024
1 parent 7067c01 commit d010260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions draft.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ var (
},
defaultVocabs: []string{"core", "applicator", "unevaluated", "validation"},
}
draftLatest = Draft2020
draftLatest = Draft2020HyperSchema
)

func init() {
c := NewCompiler()
c.AssertFormat()
for _, d := range []*Draft{Draft4, Draft6, Draft7, Draft2019, Draft2020} {
for _, d := range []*Draft{Draft4, Draft6, Draft7, Draft2019, Draft2020, Draft2020HyperSchema} {
d.sch = c.MustCompile(d.url)
for name := range d.allVocabs {
d.allVocabs[name] = c.MustCompile(strings.TrimSuffix(d.url, "schema") + "meta/" + name)
Expand Down

0 comments on commit d010260

Please sign in to comment.