2 Repos
Handles unknown enum constants by providing default values or nulls during deserialization.
Distinct from Enum Definitions: Distinct from Enum Definitions: focuses on the error-handling strategy for unknown values rather than the type definition itself.
Explore 2 awesome GitHub repositories matching data & databases · Enum Fallback Management. Refine with filters or upvote what's useful.
Moshi is a JSON serialization library and parser for Kotlin and Java. It functions as a reflectionless JSON encoder that converts typed objects to JSON strings and parses JSON data back into language objects. The library distinguishes itself through compile-time adapter generation, which removes the performance overhead associated with runtime reflection. It also provides a polymorphic JSON mapper that uses type identifiers to resolve and instantiate specific subclasses of a common base type. The framework supports custom adapter definitions for specialized type conversion, including nullabi
Allows specifying a default value or null to use when the input contains an unknown enum constant.
Mapperly is a C# source generator used for high-performance object-to-object mapping in .NET. It functions as a compile-time mapping library that produces the necessary transformation code during the build process, eliminating the need for runtime reflection when converting between domain models and data transfer objects. The tool distinguishes itself by providing type-safe diagnostic validation and strict mapping enforcement, emitting warnings for unmapped properties at compile time. It includes specialized capabilities for circular reference handling and deep cloning to maintain object iden
Provides fallback mechanisms to handle unknown enum values by redirecting them to specified defaults.