jazzband / jsonmodels

jsonmodels is library to make it easier for you to deal with structures that are converted to, or read from JSON.
http://jsonmodels.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
334 stars 51 forks source link

Added object title in JSON schema #80

Open discharged-spider opened 7 years ago

discharged-spider commented 7 years ago

Added class name as object title in json schema. Really useful when creating forms from schema (especially in lists).

beregond commented 7 years ago

Hey, @discharged-spider - nice small feature. :) This pr still needs to fix tests, and maybe to develop extra option to define other name than type.__name__ - like type.schema_name (which can be property that returns type.__name__ by default).