Skip to main content

collect_naming_errors

Function collect_naming_errors 

Source
pub fn collect_naming_errors(schema: &Schema, errors: &mut Vec<ValidationError>)
Expand description

Naming-convention diagnostics: PascalCase model/struct/enum names and enum variants, snake_case field names.

Separated from collect_structure_errors because the parser gates these behind its use_validation flag (see Parser::new_with_validation), while structural checks always run. validate_schema runs both.