diff --git a/appabuild/config/lca.py b/appabuild/config/lca.py index fb95343..3c9a0d3 100644 --- a/appabuild/config/lca.py +++ b/appabuild/config/lca.py @@ -23,6 +23,10 @@ def parse_param(param: dict) -> ImpactModelParam: :param param: dict containing the elements needed to build an ImpactModelParam. :return: constructed ImpactModelParam. """ + if "default" not in param: + raise PydanticCustomError( + "key_error", "Missing field type for a parameter", {"field": "default"} + ) try: return ImpactModelParam.from_dict(param) except KeyError: diff --git a/pyproject.toml b/pyproject.toml index a43a0ce..0c03c3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ dependencies = [ "kaleido", "tqdm", "ruamel.yaml", - "apparun==0.3.5", + "apparun==0.3.6", "typer==0.15.1", "ipython>=7.6.0,<=8.34.0", "mermaid-py==0.7.1" diff --git a/requirements.txt b/requirements.txt index 0390429..6a58470 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ aenum kaleido tqdm ruamel.yaml -apparun==0.3.5 +apparun==0.3.6 ipython>=7.6.0,<=8.34.0 pre-commit hatchling