{"record":{"id":"93924108c6a76a53","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-schema","errorCode":"UNSUPPORTED_SCHEMA","errorMessage":"unsupported JSON schema: ${violations.join('; ')}","messagePattern":"unsupported JSON schema: (.+?)","errorType":"error_code","errorClass":"JsonSchemaError","httpStatus":null,"severity":"error","filePath":"packages/core/tools/src/json-schema.ts","lineNumber":388,"sourceCode":"        break\n      }\n      /* v8 ignore next -- schemaType was narrowed from the closed SCHEMA_TYPES table above. */\n      default: assertNever(schemaType, 'JsonSchemaType')\n    }\n  }\n}\n\n/**\n * Assert that an arbitrary raw schema uses only the enforced subset.\n * Annotation-only schemas are accepted as the standard unconstrained-JSON\n * form; callers that require an object root use {@link assertObjectJsonSchema}.\n * @param schema - untrusted raw JSON Schema.\n * @returns Assertion that the schema belongs to the supported subset.\n */\nexport function assertSupportedJsonSchema(schema: unknown): asserts schema is JsonSchemaNode {\n  const violations: string[] = []\n  checkSchemaNode(schema, 'schema', violations, new Set())\n  if (violations.length > 0) throw new JsonSchemaError(violations)\n}\n\n/**\n * Assert the enforced subset plus the object-root constraint retained by\n * subagent and workflow structured outputs.\n * @param schema - untrusted caller-supplied schema.\n * @returns Assertion that the schema belongs to the supported subset and has an object root.\n */\nexport function assertObjectJsonSchema(schema: unknown): asserts schema is ObjectJsonSchema {\n  const violations: string[] = []\n  checkSchemaNode(schema, 'schema', violations, new Set())\n  if (violations.length === 0\n    && (!isJsonSchemaRecord(schema) || !Object.hasOwn(schema, 'type') || schema.type !== 'object')) {\n    violations.push('schema.type must be \"object\" (structured output is object-rooted)')\n  }\n  if (violations.length > 0) throw new JsonSchemaError(violations)\n}\n","sourceCodeStart":370,"sourceCodeEnd":406,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/core/tools/src/json-schema.ts#L370-L406","documentation":"Error \"unsupported JSON schema: ${violations.join('; ')}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/core/tools/src/json-schema.ts:388 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}