{"record":{"id":"88224d690dbdc758","repo":"oxc-project/oxc","slug":"prop-name-is-not-in-case-type","errorCode":null,"errorMessage":"Prop '{name}' is not in {case_type}.","messagePattern":"Prop '(.+?)' is not in (.+?)\\.","errorType":"validation","errorClass":"OxcDiagnostic","httpStatus":null,"severity":"error","filePath":"crates/oxc_linter/src/rules/vue/prop_name_casing.rs","lineNumber":28,"sourceCode":"    },\n};\nuse oxc_diagnostics::OxcDiagnostic;\nuse oxc_macros::declare_oxc_lint;\nuse oxc_span::{GetSpan, Span};\n\nuse crate::{\n    AstNode,\n    context::LintContext,\n    frameworks::FrameworkOptions,\n    rule::{Rule, TupleRuleConfig},\n    utils::{\n        deserialize_regex_vec, find_property, for_each_define_props_type_signature,\n        is_vue_component_options_object_excluding_instance, vue_casing,\n    },\n};\n\nfn prop_name_casing_diagnostic(span: Span, name: &str, case_type: &str) -> OxcDiagnostic {\n    OxcDiagnostic::warn(format!(\"Prop '{name}' is not in {case_type}.\")).with_label(span)\n}\n\n#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]\nenum CaseType {\n    #[default]\n    #[serde(rename = \"camelCase\")]\n    CamelCase,\n    #[serde(rename = \"snake_case\")]\n    SnakeCase,\n}\n\nimpl CaseType {\n    fn as_str(self) -> &'static str {\n        match self {\n            CaseType::CamelCase => \"camelCase\",\n            CaseType::SnakeCase => \"snake_case\",\n        }\n    }","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/oxc-project/oxc/blob/e1e7af627c8843ab64044ed466b128fcc21a035b/crates/oxc_linter/src/rules/vue/prop_name_casing.rs#L10-L46","documentation":"Emitted by report_if_invalid in the vue prop-name-casing rule when a component prop name does not match the configured casing (camelCase or kebab-case per options and vue_casing check). It is a naming-convention guard over prop definitions in both options objects and defineProps type signatures.","triggerScenarios":"Thrown at crates/oxc_linter/src/rules/vue/prop_name_casing.rs:28 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename the prop to the configured casing convention","Update the rule's casing option if the project uses a different convention"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1e7af627c8843ab64044ed466b128fcc21a035b","analyzedAt":"2026-08-20T07:01:07.079Z","contentChangedAt":"2026-08-20T07:01:07.079Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}