Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 2.19 KB

File metadata and controls

67 lines (49 loc) · 2.19 KB

Changelog

All notable changes to valify will be documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.8.0] - 2026-06-15

Added

  • RegexValidator - validates a value(str) against a regular expression.
  • new tests(76 total)

[0.7.0] - 2026-06-02

Added

  • to_json_schema() - converts the valify Validator/Schema into a standard description that other tools can understand
  • 14 new tests(76 total)

[0.6.0] - 2026-05-31

Added

  • Schema.from_example() — automatically generates a Schema from sample data by inferring validator types
  • Supports all built-in types: str, int, float, bool, email, dict, list
  • Nested dict values produce nested schemas recursively
  • List values infer item validator from first element
  • 8 new tests (62 total)

[0.5.0] - 2026-05-30

Added

  • Documentation support through Sphinx and made the site live at readthedocs.

[0.4.0] - 2026-05-29

Added

  • Nested schema support — Schema now inherits from Validator and can be used as a field value inside another Schema
  • 4 new tests for nested schema validation (54 total)

[0.3.0] - 2026-05-27

Added

  • OptionalValidator — makes any field optional with a default value
  • ListValidator — validates every item in a list
  • EnumValidator — value must be one of a fixed set of choices
  • 12 new tests (50 total)

[0.2.0] - 2026-05-27

Added

  • Full type hints across all modules (exceptions, validators, schema)
  • mypy compatibility — passes strict type checking

[0.1.0] - 2026-05-24

Added

  • StringValidator — validates strings with optional min/max length
  • IntValidator — validates integers with optional min/max value
  • FloatValidator — validates floats with optional min/max value
  • BoolValidator — validates booleans with optional string coercion
  • EmailValidator — validates email address format
  • Schema — validates dictionaries against a set of validators
  • Custom exception hierarchy: ValifyError, ValidationError, RequiredFieldError, SchemaError
  • 38 tests covering all validators and schema behaviour