Release v0.3.2
This release introduces a key structural update to the Variable model, improving clarity, validation, and YAML contract expressiveness. It also includes a full rewrite of the README.rst for better readability and consistency with the updated architecture.
What's Changed
Variable model refactor
- Replaced the previous dictionary-style variable declaration with a list of
Variableobjects. - Each variable now includes:
name: variable identifiervalue: literal value (int, str, float, bool, None)annotation: optional type annotation, validated at runtime
- Introduced
Variable.from_variable_info()for metadata transformation. - Type annotations are validated against a defined list of supported types.
YAML contract structure update
- Contracts must now define
variablesas a list of structured objects. - Example:
variables:
- name: engine
value: docker
annotation: str