CMD + K

marshmallow-oneofschema

Community

Marshmallow library extension that allows schema (de)multiplexing

Installation

To install this package, run one of the following:

Conda
$conda install ad-testing::marshmallow-oneofschema

Usage Tracking

3.2.0
3.0.1
2 / 8 versions selected
Total downloads: 0

Description

This library adds a special kind of schema that actually multiplexes other schemas based on object type. When serializing values, it uses getobjtype() method to get object type name. Then it uses type_schemas name-to-Schema mapping to get schema for that particular object type, serializes object using that schema and adds an extra field with name of object type. Deserialization is reverse.

About

Summary

Marshmallow library extension that allows schema (de)multiplexing

Information Last Updated

Sep 8, 2025 at 17:26

License

MIT

Total Downloads

10