diff --git a/dvc/parsing/__init__.py b/dvc/parsing/__init__.py index ceac9a7804..cb9aabd810 100644 --- a/dvc/parsing/__init__.py +++ b/dvc/parsing/__init__.py @@ -313,6 +313,7 @@ def _inserted_keys(iterable): @classmethod def set_context_from(cls, context: Context, to_set, source=None): + # NOTE: `set` is disabled in the schema try: for key, value in to_set.items(): src_set = [*(source or []), key] diff --git a/dvc/schema.py b/dvc/schema.py index 9a8785b0b9..d77958bab9 100644 --- a/dvc/schema.py +++ b/dvc/schema.py @@ -3,7 +3,7 @@ from dvc import dependency, output from dvc.hash_info import HashInfo from dvc.output import CHECKSUMS_SCHEMA, BaseOutput -from dvc.parsing import DO_KWD, FOREACH_KWD, SET_KWD, VARS_KWD +from dvc.parsing import DO_KWD, FOREACH_KWD, VARS_KWD from dvc.stage.params import StageParams STAGES = "stages" @@ -64,7 +64,6 @@ STAGE_DEFINITION = { StageParams.PARAM_CMD: Any(str, list), - Optional(SET_KWD): dict, Optional(StageParams.PARAM_WDIR): str, Optional(StageParams.PARAM_DEPS): [str], Optional(StageParams.PARAM_PARAMS): [Any(str, dict)], @@ -81,7 +80,6 @@ } FOREACH_IN = { - Optional(SET_KWD): dict, Required(FOREACH_KWD): Any(dict, list, str), Required(DO_KWD): STAGE_DEFINITION, }