PageIndex icon indicating copy to clipboard operation
PageIndex copied to clipboard

Feat: Add Pydantic configuration validation

Open denis-samatov opened this issue 8 months ago • 0 comments

Building on the modularization of the core logic, this PR introduces Pydantic for robust, type-safe configuration loading and validation.

Changes:

  • Added pageindex/config.py leveraging Pydantic to validate settings.
  • Updated config.yaml to use standard boolean values (true/false) instead of string representations ("yes"/"no").
  • Updated page_index.py to utilize the new ConfigLoader seamlessly.
  • Added comprehensive unit tests in pytest for the configuration loader.

Note: This PR is based on the new modular core structure and is intended to be reviewed/merged after the utils.py refactoring PR.

denis-samatov avatar Mar 26 '26 12:03 denis-samatov