{"record":{"id":"e2238964cfc0ed52","repo":"hasura/graphql-engine","slug":"model-0","errorCode":null,"errorMessage":"model '{0}'","messagePattern":"model '(.+?)'","errorType":"validation","errorClass":"ArgumentSource","httpStatus":null,"severity":"info","filePath":"v3/crates/metadata-resolve/src/stages/arguments/types.rs","lineNumber":15,"sourceCode":"use std::collections::BTreeMap;\n\nuse crate::stages::boolean_expressions;\nuse crate::types::error::ContextualError;\nuse crate::types::subgraph::ArgumentKind;\nuse crate::{Qualified, QualifiedTypeReference};\nuse indexmap::IndexMap;\nuse open_dds::arguments::ArgumentName;\nuse open_dds::commands::CommandName;\nuse open_dds::models::ModelName;\nuse serde::{Deserialize, Serialize};\n\n#[derive(Debug, Clone, thiserror::Error, Eq, Ord, PartialEq, PartialOrd)]\npub enum ArgumentSource {\n    #[error(\"model '{0}'\")]\n    Model(Qualified<ModelName>),\n    #[error(\"command '{0}'\")]\n    Command(Qualified<CommandName>),\n}\n\npub struct ArgumentsOutput {\n    pub arguments: BTreeMap<ArgumentSource, IndexMap<ArgumentName, ArgumentInfo>>,\n    pub issues: Vec<ArgumentIssue>,\n}\n\n#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]\npub struct ArgumentInfo {\n    pub argument_type: QualifiedTypeReference,\n    pub description: Option<String>,\n    pub argument_kind: ArgumentKind,\n    pub type_representation: Option<ndc_models::TypeRepresentation>,\n}\n","sourceCodeStart":1,"sourceCodeEnd":33,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/arguments/types.rs#L1-L33","documentation":"This is not a thrown error: it is the Display/Error formatting for ArgumentSource::Model, i.e. the string 'model '<name>'' used when an ArgumentSource is rendered inside error messages (typically as context when an argument belonging to a model has an issue). The actual failure is carried by a wrapping error; this text only names the model the problematic argument belongs to.","triggerScenarios":"Surfaced as context whenever the arguments resolution stage reports a problem (e.g. an ArgumentIssue::BooleanExpressionIssue) for an argument defined on a model. Any error that formats an ArgumentSource will render this fragment.","commonSituations":"Appears in build output when a model argument uses a boolean expression type that itself has issues; the 'model '...'' prefix tells you which model's argument to fix.","solutions":["Look at the surrounding error text: the real issue (usually a BooleanExpressionIssue) follows this model name","Open that model's OpenDD definition and fix the flagged argument (often its boolean expression type)","Rebuild metadata to verify"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// This is context text, not an error: handle the wrapping error (usually ArgumentIssue/BooleanExpressionIssue) and use this model name to locate the source YAML.","preventionTips":["Read the full error line: the actionable failure follows the 'model '...'' prefix","Keep model names stable to make these pointers easy to locate"],"tags":["hasura","ddn","metadata","display-context","rust"],"backgroundTag":"metadata-validation-failed","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}