jazzband / jazzband/jsonmodels

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

Open
#174 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
343
Forks
50
PR merge metrics
No merged PRs in 30d

Description

While in [json-schema](https://json-schema.org/understanding-json-schema/reference/numeric.html#number)
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 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.