From d5833509c44cef7b437684267d4cc33b5bd6d3fd Mon Sep 17 00:00:00 2001 From: Alex Shcherbakov Date: Wed, 20 Sep 2023 17:39:54 +0300 Subject: [PATCH] fix: Enable format assertion for JSON schema required for https://github.com/cloudquery/cloudquery/pull/13876 --- plugin/plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/plugin.go b/plugin/plugin.go index 220d30c6d8..6fd789d4da 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -91,6 +91,7 @@ func NewPlugin(name string, version string, newClient NewClientFunc, options ... if p.schema != "" { c := jsonschema.NewCompiler() c.Draft = jsonschema.Draft2020 + c.AssertFormat = true if err := c.AddResource("schema.json", strings.NewReader(p.schema)); err != nil { panic(fmt.Errorf("failed add plugin JSONSchema: %w", err)) }