diff --git a/CHANGELOG.md b/CHANGELOG.md index c1396bffb8..02d282d74f 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.27 (2024-06-05) + + +### Bug Fixes + +- Fixed incorrect pydantic validation over the integration settings + + ## 0.5.26 (2024-06-04) diff --git a/port_ocean/config/settings.py b/port_ocean/config/settings.py index ef3b0c87ca..4315e70402 100644 --- a/port_ocean/config/settings.py +++ b/port_ocean/config/settings.py @@ -1,15 +1,14 @@ from typing import Any, Literal +from port_ocean.config.base import BaseOceanSettings, BaseOceanModel +from port_ocean.core.event_listener import EventListenerSettingsType +from port_ocean.utils.misc import get_integration_name from pydantic import Extra, AnyHttpUrl, parse_obj_as from pydantic.class_validators import root_validator from pydantic.env_settings import InitSettingsSource, EnvSettingsSource, BaseSettings from pydantic.fields import Field from pydantic.main import BaseModel -from port_ocean.config.base import BaseOceanSettings, BaseOceanModel -from port_ocean.core.event_listener import EventListenerSettingsType -from port_ocean.utils.misc import get_integration_name - LogLevelType = Literal["ERROR", "WARNING", "INFO", "DEBUG", "CRITICAL"] @@ -42,8 +41,8 @@ class PortSettings(BaseOceanModel, extra=Extra.allow): class IntegrationSettings(BaseOceanModel, extra=Extra.allow): - identifier: str = Field(..., min_length=1) - type: str = Field(..., min_length=1) + identifier: str + type: str config: dict[str, Any] | BaseModel = Field(default_factory=dict) @root_validator(pre=True) diff --git a/pyproject.toml b/pyproject.toml index a3a44ed071..64e6164b64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "port-ocean" -version = "0.5.26" +version = "0.5.27" description = "Port Ocean is a CLI tool for managing your Port projects." readme = "README.md" homepage = "https://app.getport.io"