MCPcopy Index your code
hub / github.com/simstudioai/sim / assertValidSchema

Function assertValidSchema

apps/sim/lib/table/workflow-columns.ts:1079–1084  ·  view source on GitHub ↗
(schema: TableSchema, columnOrder: string[] | undefined)

Source from the content-addressed store, hash-verified

1077
1078/** Throws if the schema has any invariant violations. Convenience for callers. */
1079export function assertValidSchema(schema: TableSchema, columnOrder: string[] | undefined): void {
1080 const errs = validateSchema(schema, columnOrder)
1081 if (errs.length > 0) {
1082 throw new Error(`Schema validation failed: ${errs.join('; ')}`)
1083 }
1084}

Callers 9

addWorkflowGroupFunction · 0.90
updateWorkflowGroupFunction · 0.90
addWorkflowGroupOutputFunction · 0.90
deleteWorkflowGroupFunction · 0.90
addTableColumnFunction · 0.90
renameColumnFunction · 0.90
deleteColumnFunction · 0.90
deleteColumnsFunction · 0.90

Calls 2

joinMethod · 0.80
validateSchemaFunction · 0.70

Tested by

no test coverage detected