fuhrysteve / marshmallow-jsonschema

JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow
MIT License
209 stars 72 forks source link

Metadata is not serialized (only description and title are) #46

Closed stringfellow closed 6 years ago

stringfellow commented 6 years ago

Using the example from https://github.com/mozilla-services/react-jsonschema-form#multiple-choices-list -- it should be possible to set the uniqueItems property of a field. A simple way to allow extra metadata like this is to build on the support in Marshmallow for kwargs to be set in the metadata. In a previous issue, the field kwargs were added to the metadata (#39) but these were never serialized out. (So effectively useless except for description and title).