diff --git a/validate_test.go b/validate_test.go index 9092a7ba..a5bc7a68 100644 --- a/validate_test.go +++ b/validate_test.go @@ -1448,7 +1448,7 @@ func TestValidateSchemaTransformerDeleteField(t *testing.T) { huma.Validate(registry, s, pb, huma.ModeReadFromServer, map[string]any{"field1": "value1"}, res) // We should have no errors and no panics. - assert.Len(t, res.Errors, 0) + assert.Empty(t, res.Errors) } func ExampleModelValidator() {