Examples
Examples should shorten the path from understanding to execution.
High-value example categories​
- Add a new source contract and land it to Bronze.
- Update a notebook or job in the relevant example implementation.
- Extend Silver validation for a client-specific business rule.
- Configure hard-deletion behavior for a model.
- Add monitoring or diagnostics around a failing pipeline.
Contract validation​
Before running a pipeline stage, validate the contract to confirm all required custom properties are present and correct. Each stage has its own validation method that checks only what that stage needs.
contract = OpenDataContractStandard.from_file("data_contracts/swapi/swapi_people.odcs.yml")
contract.validate_for_landing() # source → landing
contract.validate_for_bronze() # landing → bronze
contract.validate_for_silver() # bronze → silver
contract.validate_for_gold(workspace_path="/workspace/root") # silver → gold
Each method returns True when the contract is valid. If any required property is missing or invalid, it raises ContractValidationError and lists every issue at once so you can fix them in one pass rather than discovering them one-by-one at runtime.
The workspace_path argument on validate_for_gold is optional. When provided, it also checks that the generator_notebook file exists on disk at that path.
::: callout note Detailed examples will be added soon. This section is being expanded with step-by-step scenarios for common Databricks and Fabric implementation tasks. :::