Skip to content

Commit

Permalink
fix(gen): compare number validators properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Feb 7, 2025
1 parent b548550 commit 5842c22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gen/reduce.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gen

import (
"bytes"
"maps"
"reflect"
"slices"
Expand Down Expand Up @@ -299,6 +300,9 @@ func (c responseComparator) compareXML(a, b *jsonschema.XML) bool {
}

func (c responseComparator) compareNum(a, b jsonschema.Num) bool {
if bytes.Equal(a, b) {
return true
}
r, _ := ogenjson.Equal(a, b)
return r
}

0 comments on commit 5842c22

Please sign in to comment.