cache schemas downloaded over HTTP

This commit is contained in:
Yann Hamon 2021-01-01 14:45:20 +01:00
parent 1a76217195
commit 18927ddf75
10 changed files with 144 additions and 52 deletions

View file

@ -82,6 +82,7 @@ func realMain() int {
}
v, err := validator.New(cfg.SchemaLocations, validator.Opts{
Cache: cfg.Cache,
SkipTLS: cfg.SkipTLS,
SkipKinds: cfg.SkipKinds,
RejectKinds: cfg.RejectKinds,