(tableId, rowId, cellId, cell)
| 1140 | () => cellInvalid(tableId, rowId) |
| 1141 | ); |
| 1142 | const getValidatedCell = (tableId, rowId, cellId, cell) => hasTablesSchema ? ifNotUndefined( |
| 1143 | mapGet(mapGet(tablesSchemaMap, tableId), cellId), |
| 1144 | (cellSchema) => isNull(cell) ? cellSchema[ALLOW_NULL] ? cell : cellInvalid(tableId, rowId, cellId, cell, cellSchema[DEFAULT]) : getCellOrValueType(cell) === cellSchema[TYPE] ? encodeIfJson(cell) : isJsonType(cellSchema[TYPE]) && isEncodedJson(cell) ? cell : cellInvalid( |
| 1145 | tableId, |
| 1146 | rowId, |
| 1147 | cellId, |
| 1148 | cell, |
| 1149 | cellSchema[DEFAULT] |
| 1150 | ), |
| 1151 | () => cellInvalid(tableId, rowId, cellId, cell) |
| 1152 | ) : isUndefined(getCellOrValueType(cell)) ? cellInvalid(tableId, rowId, cellId, cell) : encodeIfJson(cell); |
| 1153 | const validateValues = (values, skipDefaults) => objValidate( |
| 1154 | skipDefaults ? values : addDefaultsToValues(values), |
| 1155 | (value, valueId) => ifNotUndefined( |
no test coverage detected
searching dependent graphs…