float Model
Modelsfloat
float Model
Defines a model to enforce validation for float data.
model: floatConfiguration (* required)
model: float
const
Specifies the model is a float.
format
enum[binary,text] | Default:text
The format for the number.
multiple
number
Restrict the number to a multiple of a given number.
range
string| Pattern:((?:\\(|\\[))(-?\\d+(?:\\.\\d+)?)?,(-?\\d+(?:\\.\\d+)?)?((?:\\)|\\]))
An allowed range of values for the number.
validate
enum[strict,lenient] asstring, orobject| Default:strict
Controls how strictly the model enforces conformance. strict rejects data that doesn't conform; lenient passes non-conforming data through unmodified. Can also be set independently for decode and encode.
validate:
decode: lenient
encode: strictvalidate.decode
enum[strict,lenient]
Validation mode applied when decoding the value.
validate.encode
enum[strict,lenient]
Validation mode applied when encoding the value.

