Simple Normalizer: Backed Enums and Expanded Docs
· One min read
Simple Normalizer 1.7 now normalizes backed enums to their value by default, so you don't need custom normalizers for them anymore.
The docs were also expanded with features that were missing before:
- Context Bag: type-safe access to context values in your normalizers.
- Passing Context to Nested Values: change the context for a part of the data tree with
ValueWithContext. - Failing Normalization and Error Handling: how to report errors and how the normalization stack helps finding them.
- Maximum Depth: the protection against excessively deep data.
- Testing: test your normalizers with the
SimpleNormalizerTestTrait.
