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
I was trying to use the "is between" Field validation Rule for a number column. I set the values to be between -20 and 20.
Next, it was impossible to edit the value.
I could circumvent the error by changing the "is between" validation to an "and" group and checking for greater and less than.
To Reproduce
Using this field validation will always fail.
Errors Shown
My directus logs showed this
2022-04-09T10:29:08.502674382Z 10:29:08 🚨 limit must be a number or reference
2022-04-09T10:29:08.502712799Z Error: limit must be a number or reference
2022-04-09T10:29:08.502716424Z at new module.exports (/directus/node_modules/@hapi/hoek/lib/error.js:23:19)
2022-04-09T10:29:08.502722924Z at module.exports (/directus/node_modules/@hapi/hoek/lib/assert.js:20:11)
2022-04-09T10:29:08.503327757Z at internals.Base.$_addRule (/directus/node_modules/joi/lib/base.js:613:29)
2022-04-09T10:29:08.503352966Z at internals.Base.method [as greater] (/directus/node_modules/joi/lib/types/number.js:125:29)
2022-04-09T10:29:08.503355924Z at generateJoi (/directus/node_modules/@directus/shared/dist/cjs/utils/generate-joi.js:193:49)
2022-04-09T10:29:08.503399674Z at validatePayload (/directus/node_modules/@directus/shared/dist/cjs/utils/validate-payload.js:37:55)
2022-04-09T10:29:08.503404091Z at /directus/node_modules/@directus/shared/dist/cjs/utils/validate-payload.js:23:20
2022-04-09T10:29:08.503408549Z at Array.map (<anonymous>)
2022-04-09T10:29:08.503411091Z at validatePayload (/directus/node_modules/@directus/shared/dist/cjs/utils/validate-payload.js:22:66)
2022-04-09T10:29:08.503413424Z at AuthorizationService.validatePayload (/directus/node_modules/directus/dist/services/authorization.js:353:84)
What version of Directus are you using?
9.8.0
What version of Node.js are you using?
16.14
What database are you using?
Postgres 14
What browser are you using?
n.a.
How are you deploying Directus?
Kubernetes
The text was updated successfully, but these errors were encountered:
Describe the Bug
I was trying to use the "is between" Field validation Rule for a number column. I set the values to be between -20 and 20.
Next, it was impossible to edit the value.
I could circumvent the error by changing the "is between" validation to an "and" group and checking for greater and less than.
To Reproduce
Using this field validation will always fail.
Errors Shown
My directus logs showed this
What version of Directus are you using?
9.8.0
What version of Node.js are you using?
16.14
What database are you using?
Postgres 14
What browser are you using?
n.a.
How are you deploying Directus?
Kubernetes
The text was updated successfully, but these errors were encountered: