Skip to content

Commit

Permalink
add content and format assertions (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
bailinhe authored Jan 5, 2024
1 parent 9a2ee37 commit aabd171
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/jsonschema/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func NewCompiler(
opts ...Option,
) *Compiler {
c := &Compiler{*jsonschema.NewCompiler(), extensionID, slugPlural, version}
c.Compiler.AssertFormat = true
c.Compiler.AssertContent = true

for _, opt := range opts {
opt(c)
Expand Down

0 comments on commit aabd171

Please sign in to comment.