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
Ok, turns out I should've read the go docs better and used big.Rat instead of big.Float. big.Float solved most peoples multipleOf issues before, but they are not arbitrary precision as I assumed, whereas big.Rat are as they use fractions.
The solution seems pretty easy so I'll have a fix up soon.
Using golang version 1.11
have json schema as follow
{
"$id": "table1__1",
"type": "object",
"title": "table1__1",
"$schema": "http://json-schema.org/draft-07/schame#",
"required": [
],
"properties": {
"col2": {
"type": "number",
"default": "",
"multipleOf": .001
}
},
"additionalProperties": false
}
for input json
{
"col2": 2.001
}
The text was updated successfully, but these errors were encountered: