{"record":{"id":"6c840d1f8828b79a","repo":"juspay/hyperswitch","slug":"atleast-one-flow-must-be-specitied","errorCode":null,"errorMessage":"atleast one flow must be specitied","messagePattern":"atleast one flow must be specitied","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"crates/router_derive/src/macros/operation.rs","lineNumber":318,"sourceCode":"        match operation {\n            OperationsEnumMeta::Operations { value, .. } => {\n                operations = value;\n            }\n            OperationsEnumMeta::Flow { value, .. } => {\n                flows = value;\n            }\n        }\n    }\n\n    if operations.is_empty() {\n        Err(syn::Error::new(\n            Span::call_site(),\n            \"atleast one operation must be specitied\",\n        ))?;\n    }\n\n    if flows.is_empty() {\n        Err(syn::Error::new(\n            Span::call_site(),\n            \"atleast one flow must be specitied\",\n        ))?;\n    }\n\n    Ok(OperationProperties { operations, flows })\n}\n\nimpl Parse for Derives {\n    fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> {\n        let text = input.parse::<syn::LitStr>()?;\n        let value = text.value();\n\n        value.as_str().parse().map_err(|_| {\n            syn::Error::new_spanned(\n                &text,\n                format!(\n                    \"Unexpected value for flow: `{value}`. Possible values are `{}`\",","sourceCodeStart":300,"sourceCodeEnd":336,"githubUrl":"https://github.com/juspay/hyperswitch/blob/705a3219504c3cf9034e71d956455f8834ea4e64/crates/router_derive/src/macros/operation.rs#L300-L336","documentation":"Error \"atleast one flow must be specitied\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/router_derive/src/macros/operation.rs:318 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Specify at least one flow in the macro invocation (e.g. flows = [Authorize, Capture])"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"705a3219504c3cf9034e71d956455f8834ea4e64","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}