{"record":{"id":"d3a3b9c01db40031","repo":"BerriAI/litellm","slug":"missing-required-field-0","errorCode":null,"errorMessage":"missing required field: {0}","messagePattern":"missing required field: (.+?)","errorType":"exception","errorClass":"CoreError","httpStatus":null,"severity":"error","filePath":"litellm-rust/crates/core/src/error.rs","lineNumber":12,"sourceCode":"use thiserror::Error;\n\npub type CoreResult<T> = Result<T, CoreError>;\n\n#[derive(Debug, Error, PartialEq, Eq)]\npub enum CoreError {\n    #[error(\"expected {expected}, got {actual}\")]\n    InvalidType {\n        expected: &'static str,\n        actual: &'static str,\n    },\n    #[error(\"missing required field: {0}\")]\n    MissingField(&'static str),\n    #[error(\"invalid response: {0}\")]\n    InvalidResponse(String),\n    #[error(\"invalid provider: {0}\")]\n    InvalidProvider(String),\n    #[error(\"invalid request: {0}\")]\n    InvalidRequest(String),\n    #[error(\"{0}\")]\n    Auth(String),\n    #[error(\"upstream request failed with status {status}: {body}\")]\n    Http { status: u16, body: String },\n    #[error(\"upstream network error: {0}\")]\n    Network(String),\n    #[error(\"routing error: {0}\")]\n    Routing(String),\n}\n\npub fn json_type_name(value: &serde_json::Value) -> &'static str {","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm-rust/crates/core/src/error.rs#L1-L30","documentation":"Error \"missing required field: {0}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm-rust/crates/core/src/error.rs:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the missing required field named in the error in the request/config payload."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}