{"record":{"id":"6a7b1f34103ee921","repo":"openai/codex","slug":"tool-input-schema-must-not-be-a-singleton-null-typ","errorCode":null,"errorMessage":"tool input schema must not be a singleton null type","messagePattern":"tool input schema must not be a singleton null type","errorType":"validation","errorClass":"serde_json::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/tools/src/json_schema.rs","lineNumber":796,"sourceCode":"        \"null\" => Some(JsonSchemaPrimitiveType::Null),\n        _ => None,\n    }\n}\n\nfn schema_type_name(schema_type: JsonSchemaPrimitiveType) -> &'static str {\n    match schema_type {\n        JsonSchemaPrimitiveType::String => \"string\",\n        JsonSchemaPrimitiveType::Number => \"number\",\n        JsonSchemaPrimitiveType::Boolean => \"boolean\",\n        JsonSchemaPrimitiveType::Integer => \"integer\",\n        JsonSchemaPrimitiveType::Object => \"object\",\n        JsonSchemaPrimitiveType::Array => \"array\",\n        JsonSchemaPrimitiveType::Null => \"null\",\n    }\n}\n\nfn singleton_null_schema_error() -> serde_json::Error {\n    serde_json::Error::io(std::io::Error::new(\n        std::io::ErrorKind::InvalidInput,\n        \"tool input schema must not be a singleton null type\",\n    ))\n}\n\n#[cfg(test)]\n#[path = \"json_schema_tests.rs\"]\nmod tests;\n","sourceCodeStart":778,"sourceCodeEnd":805,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/tools/src/json_schema.rs#L778-L805","documentation":"Error \"tool input schema must not be a singleton null type\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/tools/src/json_schema.rs:796 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}