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

Property with type sting, format number is outputted in json as a number rather than string. #635

Closed
jjjasper opened this issue Sep 15, 2023 · 1 comment
Assignees

Comments

@jjjasper
Copy link
Contributor

When a property is defined as

stringTypedNumber:
  type: string
  format: number

the outputted json looks like

{
   "stringTypedNumber": 0.1

which is bad because precision is lost.

In 0.16.x the output would be a string.

@jjjasper
Copy link
Contributor Author

This issue was fixed in 0.17.18

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

1 participant