Closed
Description
Rating field stores a floating point value between 0-1, this is required to allow converting number of stars without patching data.
However, you can end up writing some buggy code that stores value more than 1.0, this should be prevented by server-side validation.
Currently no validation on:
- API
- Frontend (client script can modify it)
Implementation:
base_document.py
contains many fieldtype specific validations, add a new one there for rating fieldtype.