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

JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow

Results 67 marshmallow-jsonschema issues
Sort by recently updated
recently updated
newest added

Fail to dump JSON SCHEMA when there is a custom field inside the scheme. To reproduce: ``` class PinCode(fields.Field): """Field that serializes to a string of numbers and deserializes to...

When serializing an enum to json schema, there is a check to make sure the LoadDumpOption is not by value https://github.com/fuhrysteve/marshmallow-jsonschema/blob/81eada1a0c42ff67de216923968af0a6b54e5dcb/marshmallow_jsonschema/base.py#L227 The code comment states: > Python allows enum values...

Consider following schema: ``` from marshmallow import Schema, fields class UserSchema(Schema): username = fields.String() age = fields.Integer() ``` Now, say my payload is of this form: ``` [{"username": "test-1", "age":...

Marshmallow v3.11.0 [added a new type](https://marshmallow.readthedocs.io/en/stable/changelog.html#id5) that is not supported by the latest version (master): ```marshmallow_jsonschema.exceptions.UnsupportedValueError: unsupported field type ``` When will marshmallow-jsonschema (master) will support that new type? Thank...

Dear @fuhrysteve (and all others who identify as owners of this wonderful library), I would like to add `marshmallow-jsonschema` to the conda-forge package manager. I took the liberty of opening...

I have followed the example in the docs, but I don't get output when visiting `http://localhost:5000`: [https://i.imgur.com/vqIEkw1.png](https://i.imgur.com/vqIEkw1.png). Console outputs nothing. [https://i.imgur.com/Yiw7XmU.png](https://i.imgur.com/Yiw7XmU.png) While this works: `http://localhost:5000/schema` ``` {"$ref":"#/definitions/Query","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"Query":{"additionalProperties":false,"properties":{"from_country":{"default":"UK","title":"from_country","type":["string","null"]},"from_country_iso2":{"default":null,"maxLength":2,"minLength":2,"title":"from_country_iso2","type":["string","null"]},"from_country_iso3":{"default":null,"maxLength":3,"minLength":3,"title":"from_country_iso3","type":["string","null"]},"in_amount":{"default":"200","title":"in_amount","type":"string"},"to_country":{"default":"US","title":"to_country","type":["string","null"]},"to_country_iso2":{"default":null,"maxLength":2,"minLength":2,"title":"to_country_iso2","type":["string","null"]},"to_country_iso3":{"default":null,"maxLength":3,"minLength":3,"title":"to_country_iso3","type":["string","null"]}},"type":"object"}}} ``` Code as...

we have some schema using unqualified names like `2019`, `1abc`, we use `data_key` to support it ```python class A(Schema): a = fields.String(data_key='2019') ``` we would like it to be dumped...

Hello, Thanks for the great library. I have the use case for schema level validation. My specific example is that I have a field and if it is true I...

#88 introduced the ability to customize the name of the fields when serializing, which is great! However, Marshmallow already has a way to customize the name of fields when serializing...

* Create a Marshmallow schema using [`marshmallow-oneofschema`](https://github.com/marshmallow-code/marshmallow-oneofschema). * Dump a JSON Schema for this new schema. * Ideally the whole nested schema would show, and the "type" options would be...