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

to_json_schema: Change IntegerField to type:integer and FloatField to type:number #174

Open glanzel opened 1 year ago

glanzel commented 1 year ago

While in json-schema it is described that: "In Python, "number" is analogous to the float type" and "In Python, "integer" is analogous to the int type."

In jsmodels the IntegerField becomes type:muber and FloatField to type:float. Shouldn't this be changed to support the json-schema Specification ?

beregond commented 1 year ago

Hey @glanzel - thanks for feedback - I will look into that