Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Docs Required
Description
Currently if QueryEntity.keyType is an SQL type (e.g. String or Integer) then keyFields property is simply ignored. This creates room for a misconfiguration.
Let's add a check that keyFields is null or empty if keyType is an SQL type.
Probably the same should be done for valueType and valueFields.
Also, fields property should be handled somehow. An obvious case is that fields should be null or empty when both key and value are SQL types. There is probably more invariants to enforce though.