Skip to content

Add optional CommunityRating element to v1.1 schema#85

Merged
bpepple merged 1 commit into
masterfrom
83-add-communityrating-element
Jul 18, 2026
Merged

Add optional CommunityRating element to v1.1 schema#85
bpepple merged 1 commit into
masterfrom
83-add-communityrating-element

Conversation

@bpepple

@bpepple bpepple commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Add optional CommunityRating element to the v1.1 schema, containing:
    • AverageRating (required, xs:decimal restricted to 0–5.0)
    • RatingCount (optional, xs:positiveInteger)
  • Update drafts/v1.1/Sample.xml with an example CommunityRating block
  • Add schema validation tests covering valid boundary values (0, 5.0, with/without RatingCount) and invalid cases (out-of-range rating, missing required AverageRating, zero RatingCount)

Closes #83

@bpepple bpepple self-assigned this Jul 14, 2026
@bpepple bpepple added enhancement New feature or request non-breaking The change will generate a new minor version of the schema labels Jul 14, 2026
@bpepple bpepple linked an issue Jul 14, 2026 that may be closed by this pull request
Adds AverageRating (decimal, 0-5.0) and RatingCount (optional positiveInteger) sub-elements for tracking community rating data, along with sample XML and schema validation tests.
@bpepple
bpepple force-pushed the 83-add-communityrating-element branch from 68259db to 2f4b448 Compare July 17, 2026 15:08
@ajslater

Copy link
Copy Markdown

Rating Count is interesting. Can give some weight to the average.

@bpepple

bpepple commented Jul 18, 2026

Copy link
Copy Markdown
Member Author

Rating Count is interesting. Can give some weight to the average.

Yeah, I thought it might be useful for additional sorting/filtering options.

@ajslater ajslater left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Means to approve with my last comment.

@bpepple
bpepple merged commit 7df865e into master Jul 18, 2026
3 checks passed
@bpepple
bpepple deleted the 83-add-communityrating-element branch July 18, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request non-breaking The change will generate a new minor version of the schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CommunityRating element

2 participants