marshmallow-oneofschema icon indicating copy to clipboard operation
marshmallow-oneofschema copied to clipboard

Marshmallow library extension that allows schema (de)multiplexing

Results 32 marshmallow-oneofschema issues
Sort by recently updated
recently updated
newest added

See [modified README](https://github.com/marshmallow-code/marshmallow-oneofschema/blob/8d20365b3e3273eb3966547b81efd71b37f4d8dc/README.rst#building-oneofschema-with-a-decorator) for motivations and usage example. Full backward compatibility is retained, just some nice new syntax.

"TypeError: not all arguments converted during string formatting" if data is a tuple

NOTE: this change is very mildly backwards-incompatible, but since 3.0 is coming up for this lib, I think it's okay. Rather than overriding the `dump()` and `load()` methods of the...

I just noticed this, but most of the marshmallow projects are clear of the issues around `master` as a branch name and are using `dev` as the mainline branch name....

``` py class MyUberSchema(OneOfSchema): type_schemas = { 'foo': FooSchema, 'bar': BarSchema, } @post_load def whatever(self, data): print("post load") ``` AFAIU, post_load decorated method is never called. It may be intended,...

This merge request changes the _load-function so that the type-field is only added to the dumped output when type_field_remove is set to False Solves [issue #126](https://github.com/marshmallow-code/marshmallow-oneofschema/issues/126)

When setting type_field_remove to True, I would expect that there is no additional type field in the output, when dumping a OneOfSchema-Class. But this is not the case. The type...

Hello, I use Marshmallow-oneofschema with flask_restx, sqlalchemy and flask_accepts. When I query a nonexistent object with the normal schemas, the result is {}. With OneOfSchema, unfortunately, it's not working because...

All of the examples I see for this library are with the traditional marshmallow implementation, but is there a way to use this library with `marshmallow-dataclass`? [[1]] The reduced overhead...

When using a parent schema the initialization value do get passed to the actual children schema. Use case: I want to be able to bypass the classic *post_load* `make_object` when...