You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Zero and negative numbers aren't recognized as float, due to this
To Reproduce
Define a parameter for an operation to be type=number, format=float, minimum=-10, then try to call that operation with the param value of 0, 0.0, or -1.1
Actual behavior
[{"path":".body.amount","message":"should match format "float"","errorCode":"format.openapi.validation"}]
Expected behavior
Accept zero and negative numbers as well.
Examples and context
An example or relevant context e.g. an OpenAPI snippet, an Express handler function snippet
Describe the bug
Zero and negative numbers aren't recognized as float, due to this
To Reproduce
Define a parameter for an operation to be type=number, format=float, minimum=-10, then try to call that operation with the param value of 0, 0.0, or -1.1
Actual behavior
[{"path":".body.amount","message":"should match format "float"","errorCode":"format.openapi.validation"}]
Expected behavior
Accept zero and negative numbers as well.
Examples and context
An example or relevant context e.g. an OpenAPI snippet, an Express handler function snippet
The text was updated successfully, but these errors were encountered: