v0.4.0 – Context-aware validation & structured violations #40
atellaluca
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's new
Environment-aware import contracts
Added support for the
environmentkey in.ymlcontracts. You can now specify:variables: a list of expected runtime environment variables using the newVariabletype.secrets: a list of required secret names (without exposing content).This enables safe, declarative enforcement of runtime conditions without leaking sensitive data.
Structured import errors
Import failures are now context-aware. The new
ViolationSystemintroduces a structured error model that includes the reason, scope, and expected vs actual values—making debugging and tooling integration easier.SpyModel simplification
The internal representation of
SpyModelhas been cleaned up and optimized for better maintainability and future extensibility.Documentation overhaul
All documentation has been migrated from Sphinx to MkDocs. The new docs are faster to navigate and easier to contribute to.
Fixes and improvements
environmentandViolationSystemfeatures.Breaking changes
Environment variable schema
Previously defined as a raw dictionary, environment variables must now be defined using the new
Variabletype under theenvironmentsection.This discussion was created from the release v0.4.0 – Context-aware validation & structured violations.
Beta Was this translation helpful? Give feedback.
All reactions