ValidatedDeclarations provides a references to validated declarations which will be copied into new checker instances.
(env *Env)
| 36 | // ValidatedDeclarations provides a references to validated declarations which will be copied |
| 37 | // into new checker instances. |
| 38 | func ValidatedDeclarations(env *Env) Option { |
| 39 | return func(opts *options) error { |
| 40 | opts.validatedDeclarations = env.validatedDeclarations() |
| 41 | return nil |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names |
| 46 | func JSONFieldNames(enabled bool) Option { |