@@ -81,8 +81,7 @@ export function buildFilterExpression(
8181 existingValueNames : string [ ] | undefined ,
8282 metadata : Metadata < any > | undefined ,
8383) : Expression {
84- // TODO LOW:INVESTIGATE is there a use case for undefined desired to be a value
85- // metadata rid of undefined values
84+ // metadata get rid of undefined values
8685 values = deepFilter ( values , value => value !== undefined )
8786
8887 // check if provided values are valid for given operator
@@ -229,7 +228,7 @@ function buildDefaultConditionExpression(
229228 let attribute : Attribute | null
230229 switch ( operator ) {
231230 case 'contains' :
232- // TODO think about validation
231+ // TODO LOW:VALIDATION think about concept
233232 // validateValueForContains(values[0], propertyMetadata)
234233 attribute = toDbOne ( values [ 0 ] , propertyMetadata )
235234 break
@@ -301,14 +300,14 @@ function validateValues(operator: ConditionOperator, values?: any[]) {
301300 }
302301}
303302
304- // TODO should we support other types than String, Number, Binary (can we search a boolean set for example with boolean as string?)
303+ // TODO LOW:VALIDATION should we support other types than String, Number, Binary (can we search a boolean set for example with boolean as string?)
305304// private static validateValueForContains(value: any, propertyMetadata?: PropertyMetadata<any>): { S: string } {
306305// let finalValue: { S: string }
307306// if (propertyMetadata && propertyMetadata.typeInfo) {
308307// switch (propertyMetadata.typeInfo.type) {
309308// case Array:
310309// case Set:
311- // // FIXME REVIEW the validation logic
310+ // // TODO LOW:VALIDATION REVIEW the validation logic
312311// // const genericType = propertyMetadata.typeInfo.genericType
313312// // if ((!genericType && (typeof value === 'number' || typeof value === 'string' || typeof value === '')) || (
314313// // genericType &&
0 commit comments