StrictDecoding configures whether unknown fields in the YAML or JSON input cause a decoding error. By default, unknown fields are ignored.
(strict bool)
| 401 | // StrictDecoding configures whether unknown fields in the YAML or JSON input cause a decoding error. |
| 402 | // By default, unknown fields are ignored. |
| 403 | func StrictDecoding(strict bool) DecodeOption { |
| 404 | return func(opts *decodeOptions) { |
| 405 | opts.strict = strict |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | func validateStrictJSON(v any, t reflect.Type) error { |
| 410 | for t.Kind() == reflect.Pointer { |
no outgoing calls