Skip to content

Add MetronInfo v1.1 schema support#237

Merged
bpepple merged 3 commits into
masterfrom
mi-v1.1
Jul 19, 2026
Merged

Add MetronInfo v1.1 schema support#237
bpepple merged 3 commits into
masterfrom
mi-v1.1

Conversation

@bpepple

@bpepple bpepple commented Jul 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Add the MetronInfo v1.1 XSD (AlternativeNumber, CommunityRating) and update MetronInfo to validate/write against it.
  • Wire AlternativeNumber to Metadata.alternate_number and CommunityRating to Metadata.community_rating plus a new Metadata.rating_count field.
  • Update the written XML's xmlns/schemaLocation to point at the v1.1 schema.
  • Drop separate v1.0 schema tracking in validate.py/SchemaVersion: v1.1 is a strict superset of v1.0 (only additive optional elements, plus a Genre type rename to an identical shape), so v1.0 could never win in the newest-first validation order — it was dead code.

bpepple added 3 commits July 19, 2026 09:54
Register schemas.MetronInfo.v1_1 as a new SchemaVersion, validated before v1 since the schema is not a strict superset (Genre elements now use resourceType instead of the removed genreType). Rename the v1 schema directory to v1_0 for naming consistency between versions.
Fix _schema_path, which broke when the v1 schema directory was renamed to v1_0, and point it at v1_1 so writes validate against the newer schema. Wire AlternativeNumber to Metadata.alternate_number and CommunityRating to Metadata.community_rating plus a new rating_count field, and update the written XML namespace/schemaLocation to v1.1.
v1.1 is a strict superset of v1.0 (only additive optional elements, plus a Genre type rename to an identical shape), so v1.0 could never be the winning match in the newest-first validation order. Remove the dead METRON_INFO_V1 entry and its schema files.
@bpepple bpepple self-assigned this Jul 19, 2026
@bpepple bpepple added the enhancement New feature or request label Jul 19, 2026
@bpepple
bpepple merged commit 21951dc into master Jul 19, 2026
11 checks passed
@bpepple
bpepple deleted the mi-v1.1 branch July 19, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant