Skip to content

Commit

Permalink
Extend compiler and validation contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilvk committed Mar 2, 2024
1 parent 460fe6f commit f74f71b
Show file tree
Hide file tree
Showing 4 changed files with 1,202 additions and 8 deletions.
2 changes: 1 addition & 1 deletion compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ func (c *Compiler) validateSchema(r *resource, v interface{}, vloc string) error
}

validate := func(meta *Schema) error {
return meta.validateValue(v, vloc)
return meta.validateValue(v, v, vloc)
}

meta := r.draft.meta
Expand Down
Loading

0 comments on commit f74f71b

Please sign in to comment.