Skip to content

Add normalize_boolean primitive#88

Merged
matthewhorridge merged 1 commit intomainfrom
feat/normalize-boolean-primitive
Jan 28, 2026
Merged

Add normalize_boolean primitive#88
matthewhorridge merged 1 commit intomainfrom
feat/normalize-boolean-primitive

Conversation

@matthewhorridge
Copy link
Contributor

Summary

  • Add NormalizeBoolean for truthy/falsy normalization with strict/default behavior.
  • Register in vocabulary and rule deserialization.
  • Add tests and document default truthy/falsy values.

Testing

  • ============================= test session starts ==============================
    platform darwin -- Python 3.12.4, pytest-9.0.2, pluggy-1.6.0
    rootdir: /Users/matthewhorridge/IdeaProjects/harmonization-framework
    configfile: pyproject.toml
    plugins: anyio-4.12.1
    collected 40 items

tests/test_primitives_serialization.py ................................. [ 82%]
....... [100%]

============================== 40 passed in 0.28s ==============================

Introduce NormalizeBoolean for truthy/falsy normalization with strict/default behavior.
Register it in the primitive vocabulary and rule deserializer.
Add tests and document default truthy/falsy values.

Closes #87.
@matthewhorridge matthewhorridge merged commit e867874 into main Jan 28, 2026
1 check passed
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