From d77955e59e88ef7d04649a46623efa06f15602f7 Mon Sep 17 00:00:00 2001 From: Gabriel Guarisa Date: Wed, 4 Sep 2024 18:28:01 -0300 Subject: [PATCH] Fix missing field --- pyproject.toml | 2 +- retrack/nodes/dynamic/conditional_connector.py | 1 + tests/test_nodes/test_conditional_connector.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 52d46ae..3a9f108 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "retrack" -version = "2.7.0" +version = "2.7.1" description = "A business rules engine" authors = ["Gabriel Guarisa "] license = "MIT" diff --git a/retrack/nodes/dynamic/conditional_connector.py b/retrack/nodes/dynamic/conditional_connector.py index a4d01ef..12a34ee 100644 --- a/retrack/nodes/dynamic/conditional_connector.py +++ b/retrack/nodes/dynamic/conditional_connector.py @@ -12,6 +12,7 @@ class ConditionalConnectorMetadataModel(pydantic.BaseModel): source: str resource: str default: typing.Optional[str] = None + headers: typing.List[str] headers_map: typing.List[str] diff --git a/tests/test_nodes/test_conditional_connector.py b/tests/test_nodes/test_conditional_connector.py index 56dd8c5..99ca669 100644 --- a/tests/test_nodes/test_conditional_connector.py +++ b/tests/test_nodes/test_conditional_connector.py @@ -13,7 +13,8 @@ def conditional_connector_metadata(): "name": "example", "source": "source_name", "resource": "resource_name", - "headers_map": ["example_input_name", "another_input_name"], + "headers": ["example_input_name", "another_input_name"], + "headers_map": ["input_value_0", "input_value_1"], }, "outputs": { "output_value": {