WithFieldValidation wraps a Client and configures field validation, by default, for all write requests from this client. Users can override field validation for individual write requests. This wrapper has no effect on apply requests, as they do not support a custom fieldValidation setting, it is al
(c Client, validation FieldValidation)
| 31 | // This wrapper has no effect on apply requests, as they do not support a |
| 32 | // custom fieldValidation setting, it is always strict. |
| 33 | func WithFieldValidation(c Client, validation FieldValidation) Client { |
| 34 | return &clientWithFieldValidation{ |
| 35 | validation: validation, |
| 36 | client: c, |
| 37 | Reader: c, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | type clientWithFieldValidation struct { |
| 42 | validation FieldValidation |
no outgoing calls
searching dependent graphs…