MCPcopy Index your code
hub / github.com/tinyplex/tinybase / validateTable

Function validateTable

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:1124–1129  ·  view source on GitHub ↗
(table, tableId)

Source from the content-addressed store, hash-verified

1122 const validateContent = isArray;
1123 const validateTables = (tables) => objValidate(tables, validateTable, cellInvalid);
1124 const validateTable = (table, tableId) => (!hasTablesSchema || collHas(tablesSchemaMap, tableId) || /* istanbul ignore next */
1125 cellInvalid(tableId)) && objValidate(
1126 table,
1127 (row, rowId) => validateRow(tableId, rowId, row),
1128 () => cellInvalid(tableId)
1129 );
1130 const validateRow = (tableId, rowId, row, skipDefaults) => objValidate(
1131 skipDefaults ? row : addDefaultsToRow(row, tableId, rowId),
1132 (cell, cellId) => ifNotUndefined(

Callers 1

setTableFunction · 0.70

Calls 4

collHasFunction · 0.70
cellInvalidFunction · 0.70
objValidateFunction · 0.70
validateRowFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…