Skip to content

Normalize project_name and update schema title format in build-schema module #855

@Aberdur

Description

@Aberdur

Issue Description

The build-schema module requires two related fixes to ensure consistent and valid schema naming.
Currently, the project_name obtained from relecov_tools.utils.get_package_name() may contain spaces, and the generated schema title does not follow the expected naming convention.

Required Changes

  1. Normalize project_name:

    • Add a validation step to ensure that project_name = relecov_tools.utils.get_package_name() does not contain spaces.
    • If spaces are present, they must be replaced with hyphens (-).
  2. Update schema title format:

    • Change the schema title generation logic from:
      new_schema["title"] = f"{project_name} Schema."
      to:
      new_schema["title"] = f"{project_name}-schema"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions