-
-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Description
// Number
Min *float64 `json:"minimum,omitempty" yaml:"minimum,omitempty"`
Max *float64 `json:"maximum,omitempty" yaml:"maximum,omitempty"`
MultipleOf *float64 `json:"multipleOf,omitempty" yaml:"multipleOf,omitempty"`
I can see the schema of number is float64, and the default json decoder marshal number into float64, however there will be precision problems between float64 and int64, so the validation may not be correct.
Metadata
Metadata
Assignees
Labels
No labels