MCPcopy Create free account
hub / github.com/antvis/AVA / parseSourceConfigs

Function parseSourceConfigs

src/util/source.ts:60–68  ·  view source on GitHub ↗
(input: unknown, reservedNames: readonly string[] = [])

Source from the content-addressed store, hash-verified

58 * Normalize a single source or a batch into a validated list.
59 */
60export function parseSourceConfigs(input: unknown, reservedNames: readonly string[] = []): ParsedDataSourceConfig[] {
61 const configs = Array.isArray(input) ? input : [input];
62 if (configs.length === 0) throw new Error('At least one data source is required');
63
64 return assignSourceNames(
65 Array.from(configs, (config) => sourceInputSchema.parse(config)),
66 reservedNames
67 );
68}

Callers 2

loadMethod · 0.90
contracts.test.tsFile · 0.90

Calls 1

assignSourceNamesFunction · 0.85

Tested by

no test coverage detected