Skip to content

Commit b53c5ab

Browse files
authored
fix: Enable format assertion for JSON schema (#1231)
required for cloudquery/cloudquery#13876
1 parent 7a6206c commit b53c5ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func NewPlugin(name string, version string, newClient NewClientFunc, options ...
9191
if p.schema != "" {
9292
c := jsonschema.NewCompiler()
9393
c.Draft = jsonschema.Draft2020
94+
c.AssertFormat = true
9495
if err := c.AddResource("schema.json", strings.NewReader(p.schema)); err != nil {
9596
panic(fmt.Errorf("failed add plugin JSONSchema: %w", err))
9697
}

0 commit comments

Comments
 (0)