In the data validation hooks example (https://kedr...
# beginners-need-help
r
In the data validation hooks example (https://kedro.readthedocs.io/en/stable/07_extend_kedro/02_hooks.html#add-data-validation), the
DATASET_EXPECTATION_MAPPING
is defined in the class itself:
Copy code
class DataValidationHooks:

    # Map expectation to dataset
    DATASET_EXPECTATION_MAPPING = {
        "companies": "raw_companies_dataset_expectation",
        "preprocessed_companies": "preprocessed_companies_dataset_expectation",
    }
    ...
Is it possible to define this in the parameters yml?
before_node_run
and
after_node_run
doesn't seem to pass in the
context
.