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.
The score and quality fields in entity models are floats. Currently, zentity strictly requires the inputs of those fields to be floats. If an integer is submitted to one of these fields, zentity will throw a validation exception.
This behavior is too restrictive for some clients. JavaScript's JSON.stringify() serializer will force any number of 0.0 or 1.0 to be serialized as 0 or 1 and there is no easy way around this (cases: here, here).
zentity should allow integers as inputs to float fields, and then convert those fields to floats for its own purposes.
The text was updated successfully, but these errors were encountered:
Allow integer values of 0 or 1 for the "score" and "quality" fields, which expect floating point numbers in the range of 0.0 - 1.0. Allow floating point numbers with zero decimal value (e.g. ###.0) for the "weight" field, which expects an integer value.
The
score
andquality
fields in entity models are floats. Currently, zentity strictly requires the inputs of those fields to be floats. If an integer is submitted to one of these fields, zentity will throw a validation exception.This behavior is too restrictive for some clients. JavaScript's
JSON.stringify()
serializer will force any number of0.0
or1.0
to be serialized as0
or1
and there is no easy way around this (cases: here, here).zentity should allow integers as inputs to float fields, and then convert those fields to floats for its own purposes.
The text was updated successfully, but these errors were encountered: