Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glanzel opened this issue Mar 2, 2023 · 1 comment

Comments

@glanzel
Copy link

glanzel commented Mar 2, 2023

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants