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

Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.4. Commits 6027577 Release 5.0.4 213e006 Merge pull request #1653 from asottile/lower-bound-importlib-metadata e94ee2b require sufficiently new importlib-metadata 318a86a Merge pull request #1646 from televi/main 7b8b374...

dependencies

Type specific schemas don't respect excludes passed to ```OneOfSchema```. This adds an ```__init__``` method to the ```OneOfSchema``` class so the instantiation arguments can be saved and passed to the type...

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.3.23 to 22.7.1. Release notes Sourced from flake8-bugbear's releases. 22.7.1 Implement late-binding loop check (#265) late-binding closures are a classic gotcha. 22.6.22 Don't crash when select /...

dependencies

I currently have an application using `marshmallow-oneofschema` and linting under `mypy`. As I tune up mypy strictness, I noticed errors about "subclassing Any". `marshmallow-oneofschema` does not publish annotations right now....

I am using `oneOfSchema` one of my api endpoints. I also use autogenerated documentation using `apispec` library. I was expecting to see generated docs based on `type_field` and `type_schemas`. But...

question

What is the purpose of the following line? https://github.com/marshmallow-code/marshmallow-oneofschema/blob/d65a115c2fcf4e7c635dce2be9561b075e546800/marshmallow_oneofschema/one_of_schema.py#L118 It's preventing me from applying any special serialization rules to the type field in the downstream schemas since the serialized value...

### The Error If the default `get_obj_type` is used (i.e. when the subclass does not overwrite the `get_obj_type` method), then the dumping of the schema does not raise an error...

This adds support for the `only` and `include` options by passing them down to the This is backwards incompatible as it expects the `type_schemas` values to be Schema types, not...

Consider the following code: `example.py`: ```python from typing import Dict from marshmallow_oneofschema import OneOfSchema class ExampleSchema(OneOfSchema): type_schemas: Dict = {} ``` I would like to type check my code as...

Relevant code: https://github.com/marshmallow-code/marshmallow-oneofschema/blob/a17d5c1493206ebb44664844d36445d5a2a62f5f/marshmallow_oneofschema/one_of_schema.py#L169 Rather than `"Unsupported value: 'foo'"`, I'd like to show the supported values, similar to how Marshmallow's `OneOf` field type shows `Must be one of: FOO`.