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

Suppose I want to map schemas like this: ``` class MySchema(OneOfSchema): type_schemas = { 0: Schema1, 1: Schema2 } ``` When I try to load data with type 0, I...

A custom exception can't be raised when has an error.

I need to deserialize this JSON: ```json { "emails": { "items": [ { "id": 1, "email": "[email protected]" }, { "id": 2, "email": "[email protected]" } ] } } ``` Into this...

There are a few hard coded errors in the `_load` method that would be nice to be able to set dynamically without overriding the method. This is helpful in the...

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.3.23 to 22.9.23. Release notes Sourced from flake8-bugbear's releases. 22.9.23 add B026: find argument unpacking after keyword argument (#287) Move to setup.cfg like flake8 (#288) 22.9.11 Add...

dependencies

updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.13 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.13...v0.2.2) - [github.com/python-jsonschema/check-jsonschema: 0.27.3 → 0.28.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.3...0.28.0)

This fixes the following mypy error: > Module "marshmallow_oneofschema" does not explicitly export attribute "OneOfSchema" The alternative way to make mypy happy is to do the following, which I can...

@maximkulkin, could you please make Steven (@sloria) and I owners of the [PYPI project](https://pypi.org/manage/project/marshmallow-oneofschema/collaboration/)? - https://pypi.org/user/lafrech/ - https://pypi.org/user/sloria/ Thanks. -------------------- @sloria, if we don't get any answer from Maxim after...

Hello, I am building an integration with an external webhook, unfortunately the webhook returns 2 slightly different payloads depending if the payload has a collection of objects or not. I...