- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Checklist for implementing new Serializers
        Lojack edited this page Jan 12, 2023 
        ·
        1 revision
      
    There's a lot to think about to make sure a new Serializer has all the features, so here's a checklist:
- Implement core functionality (packing/unpacking logic).
-  Implement prepack/preunpackwhen needed. For container typeSerializers, consider something similar to whatCompoundSerializerdoes to optimize only if any of the sub-serializers need a specialprepack/preunpackcall.
-  Check if you need to handle TypeVars at all.
-  Implement any transformations needed for type_checking.annotatedto automatically unwrap theSerializercorrectly. SeeStructuredSerializerfor an example - hintedStructured-derived classes get automatically wrapped with aStructuredSerializer.
- Tests, try to get 100% coverage to make sure you've covered all the edge cases.
- Documentation.