diff --git a/CHANGELOG.md b/CHANGELOG.md index 091d98887b..c1396bffb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm +## 0.5.26 (2024-06-04) + + +### Bug Fixes + +- Fixed an issue causing integrations with no configuration to fail during the initialization process + + ## 0.5.25 (2024-06-03) diff --git a/port_ocean/config/settings.py b/port_ocean/config/settings.py index 21d3e5836a..ef3b0c87ca 100644 --- a/port_ocean/config/settings.py +++ b/port_ocean/config/settings.py @@ -44,10 +44,10 @@ class PortSettings(BaseOceanModel, extra=Extra.allow): class IntegrationSettings(BaseOceanModel, extra=Extra.allow): identifier: str = Field(..., min_length=1) type: str = Field(..., min_length=1) - config: dict[str, Any] | BaseModel + config: dict[str, Any] | BaseModel = Field(default_factory=dict) @root_validator(pre=True) - def a(cls, values: dict[str, Any]) -> dict[str, Any]: + def root_validator(cls, values: dict[str, Any]) -> dict[str, Any]: integ_type = values.get("type") if not integ_type: @@ -68,4 +68,5 @@ class IntegrationConfiguration(BaseOceanSettings, extra=Extra.allow): send_raw_data_examples: bool = True port: PortSettings event_listener: EventListenerSettingsType - integration: IntegrationSettings + # If an identifier or type is not provided, it will be generated based on the integration name + integration: IntegrationSettings = IntegrationSettings(type="", identifier="") diff --git a/pyproject.toml b/pyproject.toml index f70c3f7860..a3a44ed071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "port-ocean" -version = "0.5.25" +version = "0.5.26" description = "Port Ocean is a CLI tool for managing your Port projects." readme = "README.md" homepage = "https://app.getport.io"