File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ func TestJSONSchema2020Validator_ExclusiveMinMax(t *testing.T) {
138138 schema := & Schema {
139139 Type : & Types {"number" },
140140 Min : & min ,
141- ExclusiveMinBool : boolPtr (true ),
141+ ExclusiveMinBool : Ptr (true ),
142142 }
143143
144144 err := schema .VisitJSON (0.1 , EnableJSONSchema2020 ())
@@ -153,7 +153,7 @@ func TestJSONSchema2020Validator_ExclusiveMinMax(t *testing.T) {
153153 schema := & Schema {
154154 Type : & Types {"number" },
155155 Max : & max ,
156- ExclusiveMaxBool : boolPtr (true ),
156+ ExclusiveMaxBool : Ptr (true ),
157157 }
158158
159159 err := schema .VisitJSON (99.9 , EnableJSONSchema2020 ())
@@ -276,7 +276,3 @@ func TestBuiltInValidatorStillWorks(t *testing.T) {
276276 require .Error (t , err )
277277 })
278278}
279-
280- func boolPtr (b bool ) * bool {
281- return & b
282- }
You can’t perform that action at this time.
0 commit comments