Skip to content

Release v0.3.2

Choose a tag to compare

@atellaluca atellaluca released this 18 Apr 13:31
· 108 commits to main since this release

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 Variable objects.
  • Each variable now includes:
    • name: variable identifier
    • value: 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 variables as a list of structured objects.
  • Example:
variables:
  - name: engine
    value: docker
    annotation: str