Skip to content

Commit

Permalink
fix: remove refs issue
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Jun 6, 2023
1 parent 5aee348 commit 35598fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/validatorfactory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func removeRefs(defs map[string]*spec.Schema, sch spec.Schema) spec.Schema {
vCopy.Default = nil
vCopy.Example = nil
vCopy.Description = ""
vCopy.Extensions = nil

if reflect.DeepEqual(vCopy, spec.Schema{}) {
return removeRefs(defs, sch.AllOf[0])
Expand Down

0 comments on commit 35598fa

Please sign in to comment.