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 <gabriel.guarisa@pier.digital>"] 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": {