python-marshmallow-union icon indicating copy to clipboard operation
python-marshmallow-union copied to clipboard

Union fields for marshmallow.

Results 3 python-marshmallow-union issues
Sort by recently updated
recently updated
newest added

```python import marshmallow import marshmallow_union class ASchema(marshmallow.Schema): a = marshmallow.fields.Str() class BSchema(marshmallow.Schema): b = marshmallow.fields.Str() class TestSchema(marshmallow.Schema): my_union_field = marshmallow_union.Union( [ marshmallow.fields.Nested(ASchema), marshmallow.fields.Nested(BSchema) ] ) input_data = {"my_union_field": {"b": "b"}}...

I have just used `Union` and I found one issue with the way it works currently... This code is here for illustration purposes only. ```py from marshmallow import fields #...

It seems the union is ambiguous, ie it is not tagged... As a result : ``` Python 3.7.5 (default, Nov 20 2019, 09:21:52) Type 'copyright', 'credits' or 'license' for more...