{"record":{"id":"cd6a5679c80117f6","repo":"DioxusLabs/dioxus","slug":"expected-path-param-to-be-wrapped-in-curly-braces","errorCode":null,"errorMessage":"expected path param to be wrapped in curly braces","messagePattern":"expected path param to be wrapped in curly braces","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":1109,"sourceCode":"        matches!(self, Self::Capture(..) | Self::WildCard(..))\n    }\n\n    fn capture(&self) -> Option<(&Ident, &Type)> {\n        match self {\n            Self::Capture(_, _, ident, ty, _) => Some((ident, ty)),\n            Self::WildCard(_, _, _, ident, ty, _) => Some((ident, ty)),\n            _ => None,\n        }\n    }\n\n    fn new(str: &str, span: Span, ty: Box<Type>) -> syn::Result<Self> {\n        let ok = if str.starts_with('{') {\n            let str = str\n                .strip_prefix('{')\n                .unwrap()\n                .strip_suffix('}')\n                .ok_or_else(|| {\n                    syn::Error::new(span, \"expected path param to be wrapped in curly braces\")\n                })?;\n            Self::Capture(\n                LitStr::new(str, span),\n                Brace(span),\n                Ident::new(str, span),\n                ty,\n                Brace(span),\n            )\n        } else if str.starts_with('*') && str.len() > 1 {\n            let str = str.strip_prefix('*').unwrap();\n            Self::WildCard(\n                LitStr::new(str, span),\n                Brace(span),\n                Star(span),\n                Ident::new(str, span),\n                ty,\n                Brace(span),\n            )","sourceCodeStart":1091,"sourceCodeEnd":1127,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L1091-L1127","documentation":"A path segment looked like a capture (it starts with '{') but did not end with '}', so the macro cannot extract the parameter name. Captured path params must be fully wrapped in curly braces, e.g. {id}.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:1109 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wrap the path parameter name in curly braces, e.g. \"/users/{id}\"."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}