Skip to content

Commit ea2bc6a

Browse files
committed
remove duplicated helper
1 parent d1d74f8 commit ea2bc6a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

openapi3/schema_jsonschema_validator_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
}

0 commit comments

Comments
 (0)