-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: make number default to float if format is float or double #154
Conversation
@RomanHotsiy, is this something you can approve? |
Oh, I'm not sure. It seems like a big change. Too many real-life usages use I don't think we need to change it. |
I can understand that. What if I add another check for |
@kennethaasan yes, totally agree here. |
Great! Please check now. |
@RomanHotsiy, please review again. I would appreciate this getting merged soon! |
Thanks @kennethaasan ! |
Just published 1.4.0. @AlexVarchuk please, upgrade Redoc to this version when you have chance. Thanks! |
FYI @magicmatatjahu @derberg for asyncapi-react |
What/Why/How?
Schemas with type
number
should always be sampled with a double or float, and not an integer. According to the OpenAPI spec, the format of a number is either a double or a float.Reference
https://spec.openapis.org/oas/v3.1.0#data-types
Testing
Screenshots (optional)
Check yourself
Security