-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How can I define how many digitis is allowed behind the comma? #1055
Comments
type: number
multipleOf: 0.01 |
Well, this is already a ReDoc "issue". EDIT The question is what should it display ( '* 0.01' for example ? ). |
That is a good question. Something like decimals<= 2 digits. |
well, decimal 2 digits won't work, as you could also give
@RomanHotsiy what is your opinion on this, i can implement it ? |
I don't have a good idea of how to display this. The current working idea is as below:
What do you think? |
This is not a bad solution, splitting the cases. I’ll implement something this weekend and we can take it from there. |
How can I specify how many digitis is allowed for decimal part by using OAS 3.0/Redoc?
decimal(10,2) or NUMBER(10,2) means total length is 10 digits but out of 10 digits 2 digits are for decimal part. So the final allowed number will be 8 digits for integral part and 2 digits for fractional part.
The text was updated successfully, but these errors were encountered: