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
-
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 (
-).
-
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"