marshmallow-jsonschema
marshmallow-jsonschema copied to clipboard
JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow
Fix for the issue described #109
Kind of a corner case, I have a schema with a custom field that holds a recursive instance of that same schema, and I got blocked on not having access...
When using Any field, the type is set to string, and when used in a Dict, it sets the types in the additional properties to string, null. This leads to...
- Refactor _resolve_additional_properties to reuse parts of it for title and description support - Add _get_schema_metadata that retrieves the 3 currently supported metadata options on a schema - Rename 'cls'...
Marshmallow uses a nested ``Meta`` [class](https://marshmallow.readthedocs.io/en/latest/api_reference.html#marshmallow.Schema.Meta) in order to hold metadata about things like what fields to serialize. Can we use this schema to hold string fields about [``title``, ``description``](https://spacetelescope.github.io/understanding-json-schema/reference/generic.html#metadata)...
This works: ```python from marshmallow import Schema, fields from marshmallow_jsonschema import JSONSchema class RecursiveSchema(Schema): # when nesting recursively you can only refer the recursive schema by its name nested_mwe_recursive =...
Ref: https://github.com/fuhrysteve/marshmallow-jsonschema/issues/162 Apologies if I am missing something obvious! This seems to work well enough for me.
Hi, It would seem that there is no marshmallow.Tuple support, in particular it is deliberately left out of `MARSHMALLOW_TO_PY_TYPES_PAIRS`. I added it in locally and it seems to work enough...
`marshmallow_enum` already supports load by value and load by name. https://github.com/justanr/marshmallow_enum The goal I want is to dump my JsonScheam which has enum in it. ``` @dataclass_json @dataclass class Datum(object):...
Hello! First, thank you for the tool! I noticed there are some warnings from marshmallow that needs to be addressed: since `marshmallow>=3.10.0` https://github.com/marshmallow-code/marshmallow/commit/013abfd669f64446cc7954d0320cf5f1d668bd49 ``` RemovedInMarshmallow4Warning: Passing field metadata as a...