Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adds centralized option validation for ZoneTree configuration. - #149

Merged
koculu merged 2 commits into
mainfrom
option-validation-ensure-safe-boundaries
Jun 13, 2026
Merged

Adds centralized option validation for ZoneTree configuration.#149
koculu merged 2 commits into
mainfrom
option-validation-ensure-safe-boundaries

Conversation

@koculu

@koculu koculu commented Jun 13, 2026

Copy link
Copy Markdown
Member

Summary

Adds centralized option validation for ZoneTree configuration.

This hardens startup validation by checking required options, enum values, compression method/level compatibility, and unsafe numeric ranges before ZoneTree opens.

Details

  • Adds a dedicated ZoneTreeOptionsValidator
  • Adds centralized editable validation rules via ZoneTreeOptionValidationRules
  • Adds compact fluent Rule helpers for min/max, KB/MB, and seconds-based ranges
  • Adds AllowUnsafeOptionValues for tests and advanced users who intentionally want to bypass numeric range checks
  • Keeps required options, enum validation, and compression compatibility always enforced
  • Adds focused tests for valid options, missing options, invalid values, compression validation, and unsafe bypass behavior
  • Improves XML comments for critical options that affect memory, segment shape, and multipart behavior

Notes

This is defensive validation and documentation cleanup. It does not change normal runtime behavior for valid configurations.

@koculu
koculu merged commit e2c7375 into main Jun 13, 2026
1 check passed
@koculu
koculu deleted the option-validation-ensure-safe-boundaries branch June 13, 2026 11:11
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