chroma-core/chroma · error · Error
Config validation failed for schema '${schemaName}': ${error
Error message
Config validation failed for schema '${schemaName}': ${errorPaths} What it means
Error "Config validation failed for schema '${schemaName}': ${errorPaths}" thrown in chroma-core/chroma.
Source
Thrown at clients/new-js/packages/ai-embeddings/common/src/schema-utils.ts:123
* @param config Configuration to validate
* @param schemaName Name of the schema file (without .json extension)
* @throws Error if the configuration does not match the schema
*/
export function validateConfigSchema(
config: Record<string, any>,
schemaName: keyof typeof schemaMap,
): void {
const schema = loadSchema(schemaName);
const validate = ajv.compile(schema);
const valid = validate(config);
if (!valid) {
const errors = validate.errors || [];
const errorPaths = errors
.map((e) => `${e.instancePath || "/"}: ${e.message}`)
.join(", ");
throw new Error(
`Config validation failed for schema '${schemaName}': ${errorPaths}`,
);
}
}
/**
* Get the version of a schema.
*
* @param schemaName Name of the schema file (without .json extension)
* @returns The schema version as a string
* @throws Error if the schema file does not exist or is not valid JSON
*/
export function getSchemaVersion(schemaName: keyof typeof schemaMap): string {
const schema = loadSchema(schemaName);
return schema.version || "1.0.0";
}
/**View on GitHub (pinned to aecdd12c8a)
When it happens
Trigger: Thrown at clients/new-js/packages/ai-embeddings/common/src/schema-utils.ts:123 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of chroma-core/chroma@aecdd12c8a (2026-08-16).
Data as JSON: /api/errors/5588dcb56cd40136.
Report an issue: GitHub.