Skip to content

Align NumberingStyle with spec resetTrigger and style changes#99

Merged
gvonness-apolitical merged 1 commit intomainfrom
fix/align-numbering-style-with-spec
Feb 22, 2026
Merged

Align NumberingStyle with spec resetTrigger and style changes#99
gvonness-apolitical merged 1 commit intomainfrom
fix/align-numbering-style-with-spec

Conversation

@gvonness-apolitical
Copy link
Collaborator

Summary

  • Update spec submodule to 00a5532 (PR Update rand_core requirement from 0.6 to 0.10 #32 merge commit with 25 spec fixes)
  • Replace NumberingStyle.format: String with style: Option<NumberingStylePattern> enum matching spec's numberingStyle values (number, chapter.number, section.number, chapter.section.number)
  • Replace NumberingStyle.reset_per_chapter: bool with reset_on: Option<ResetTrigger> enum matching spec's heading-level reset triggers (heading1..heading6, none)
  • Add serde(alias = "format") for backward deserialization compatibility
  • Update extension-guide.md numbering description

Test plan

  • cargo build passes
  • cargo test — 1,060 tests pass (including 33 spec compliance tests)
  • cargo clippy — no new warnings
  • CI passes

Update spec submodule to include PR #32 fixes. Replace
NumberingStyle.format (String) with style (NumberingStylePattern enum)
and reset_per_chapter (bool) with reset_on (ResetTrigger enum) to match
the spec's heading-level reset triggers and numbering style patterns.

- Add ResetTrigger enum: heading1..heading6, none
- Add NumberingStylePattern enum: number, chapter.number, etc.
- serde(alias = "format") for backward deserialization compatibility
- Update extension-guide.md numbering description
@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gvonness-apolitical gvonness-apolitical merged commit 1d7ab83 into main Feb 22, 2026
16 checks passed
@gvonness-apolitical gvonness-apolitical deleted the fix/align-numbering-style-with-spec branch February 22, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant