{"record":{"id":"d507ea2240dc71c5","repo":"tensorflow/models","slug":"context-is-missing-required-field-s-join","errorCode":null,"errorMessage":"{context} is missing required field(s): {', '.join(missing)}.","messagePattern":"(.+?) is missing required field\\(s\\): (.+?)\\.","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":269,"sourceCode":"def _require_keys(\n    mapping: dict[str, Any],\n    required_keys: tuple[str, ...],\n    context: str,\n) -> None:\n  \"\"\"Raises if any required key is absent from a mapping.\n\n  Args:\n      mapping: The mapping to inspect.\n      required_keys: Keys that must be present.\n      context: Human-readable description of where the mapping came from,\n        used in the error message.\n\n  Raises:\n      ConfigError: If any required key is missing.\n  \"\"\"\n  missing = [key for key in required_keys if key not in mapping]\n  if missing:\n    raise ConfigError(\n        f\"{context} is missing required field(s): {', '.join(missing)}.\"\n    )\n\n\ndef _require_number_in_range(\n    value: Any,\n    field_name: str,\n    minimum: float,\n    maximum: float,\n    allow_int: bool = True,\n) -> float:\n  \"\"\"Validates that a value is a number within an inclusive range.\n\n  Booleans are rejected explicitly because ``bool`` is a subclass of ``int``\n  in Python and would otherwise slip through numeric checks.\n\n  Args:\n      value: The value to validate.","sourceCodeStart":251,"sourceCodeEnd":287,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L251-L287","documentation":"Error \"{context} is missing required field(s): {', '.join(missing)}.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:269 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":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}