Open
Description
Problem to Solve
TypeDB has regex for string attributes but no Numeric Attribute Validation (min, max, range)
Current Workaround
An idea should be to
define
max-long-value sub attribute, value long;
measure sub attribute, value long, has max-value;
And to evaluate the statement on the client side.
Or define an max-error entity in TypeDB and define a rule that would raise an error (create a relation between the attribute and error code). But still require the client to pull the error entity.
Proposed Solution
Support Natively the constraint if possible of course.
define item owns measure, must-be <= {numeric value};
or
define item owns measure, max {numerix value};
or more original, let the modeler define his own rules that raise error in the system as described above.