Skip to content

Commit c36d263

Browse files
committed
Remove set validator
1 parent c9a10f4 commit c36d263

File tree

3 files changed

+0
-79
lines changed

3 files changed

+0
-79
lines changed

internal/schemavalidator/prefer_write_only_attribute.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ var (
2525
_ validator.Map = PreferWriteOnlyAttribute{}
2626
_ validator.Number = PreferWriteOnlyAttribute{}
2727
_ validator.Object = PreferWriteOnlyAttribute{}
28-
_ validator.Set = PreferWriteOnlyAttribute{}
2928
_ validator.String = PreferWriteOnlyAttribute{}
3029
)
3130

@@ -235,20 +234,6 @@ func (av PreferWriteOnlyAttribute) ValidateObject(ctx context.Context, req valid
235234
resp.Diagnostics.Append(validateResp.Diagnostics...)
236235
}
237236

238-
func (av PreferWriteOnlyAttribute) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse) {
239-
validateReq := PreferWriteOnlyAttributeRequest{
240-
Config: req.Config,
241-
ConfigValue: req.ConfigValue,
242-
Path: req.Path,
243-
PathExpression: req.PathExpression,
244-
}
245-
validateResp := &PreferWriteOnlyAttributeResponse{}
246-
247-
av.Validate(ctx, validateReq, validateResp)
248-
249-
resp.Diagnostics.Append(validateResp.Diagnostics...)
250-
}
251-
252237
func (av PreferWriteOnlyAttribute) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse) {
253238
validateReq := PreferWriteOnlyAttributeRequest{
254239
Config: req.Config,

setvalidator/prefer_write_only_attribute.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

setvalidator/prefer_write_only_attribute_example_test.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)