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

Add default param for fields. #34

Open beregond opened 9 years ago

beregond commented 9 years ago

Probably also add it to generated schema.

avrahamshukron commented 6 years ago

That would be very useful. Right now you have to subclass each field of which you want to provide a default value.

avrahamshukron commented 6 years ago

I did not add the necessary default keyword to the schema when I implemented this issue. @beregond - where is the schema generation is done in the code?