Skip to content

Commit

Permalink
fix: assertContent check missing in compile
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed Nov 9, 2022
1 parent 5aebad0 commit 0be80a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,10 @@ func (c *Compiler) compileMap(r *resource, stack []schemaRef, sref schemaRef, re
}

if r.draft.version >= 2019 {
s.decoder = nil
s.mediaType = nil
if !c.AssertContent {
s.decoder = nil
s.mediaType = nil
}
if !c.AssertFormat {
s.format = nil
}
Expand Down

0 comments on commit 0be80a6

Please sign in to comment.