{"record":{"id":"64183342ca866c0a","repo":"microsoft/autogen","slug":"unsupported-or-missing-type-json-type-for-fiel","errorCode":null,"errorMessage":"Unsupported or missing type `{json_type}` for field `{key}` in `{model_name}`","messagePattern":"Unsupported or missing type `(.+?)` for field `(.+?)` in `(.+?)`","errorType":"exception","errorClass":"UnsupportedKeywordError","httpStatus":null,"severity":"error","filePath":"python/packages/autogen-core/src/autogen_core/utils/_json_to_pydantic.py","lineNumber":218,"sourceCode":"                        else:\n                            item_type = TYPE_MAPPING[item_type_name]\n\n                    constraints = {}\n                    if \"minItems\" in s:\n                        constraints[\"min_length\"] = s[\"minItems\"]\n                    if \"maxItems\" in s:\n                        constraints[\"max_length\"] = s[\"maxItems\"]\n\n                    array_type = conlist(item_type, **constraints) if constraints else List[item_type]  # type: ignore[valid-type]\n                    types.append(array_type)\n                else:\n                    types.append(TYPE_MAPPING[json_type])\n        return types\n\n    def _extract_field_type(self, key: str, value: Dict[str, Any], model_name: str, root_schema: Dict[str, Any]) -> Any:\n        json_type = value.get(\"type\")\n        if json_type not in TYPE_MAPPING:\n            raise UnsupportedKeywordError(\n                f\"Unsupported or missing type `{json_type}` for field `{key}` in `{model_name}`\"\n            )\n\n        base_type = TYPE_MAPPING[json_type]\n        constraints: Dict[str, Any] = {}\n\n        if json_type == \"string\":\n            if \"minLength\" in value:\n                constraints[\"min_length\"] = value[\"minLength\"]\n            if \"maxLength\" in value:\n                constraints[\"max_length\"] = value[\"maxLength\"]\n            if \"pattern\" in value:\n                constraints[\"pattern\"] = value[\"pattern\"]\n            if constraints:\n                base_type = constr(**constraints)\n\n        elif json_type == \"integer\":\n            if \"minimum\" in value:","sourceCodeStart":200,"sourceCodeEnd":236,"githubUrl":"https://github.com/microsoft/autogen/blob/027ecf0a379bcc1d09956d46d12d44a3ad9cee14/python/packages/autogen-core/src/autogen_core/utils/_json_to_pydantic.py#L200-L236","documentation":"Error \"Unsupported or missing type `{json_type}` for field `{key}` in `{model_name}`\" thrown in microsoft/autogen.","triggerScenarios":"Thrown at python/packages/autogen-core/src/autogen_core/utils/_json_to_pydantic.py:218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Specify a supported type for the field"],"exampleFix":"Add a valid 'type' for the field in the schema","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"027ecf0a379bcc1d09956d46d12d44a3ad9cee14","analyzedAt":"2026-08-15T03:38:00.719Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}