Commit 45ffbd64 authored by Natalia Grigoriadou's avatar Natalia Grigoriadou
Browse files

fixed format errors

parent 38eb5b4e
Loading
Loading
Loading
Loading
+5 −1
Changes for mcp_module/models/edge_application_models.py: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ class AppRepoInput(BaseModel):
    credentials: str | None = Field(default=None, max_length=2048)
    authType: Literal["DOCKER", "HTTP_BASIC", "HTTP_BEARER", "NONE"] | None = None
    checksum: str | None = Field(default=None, max_length=128)


class NetworkInterfaceInput(BaseModel):
    interfaceId: str = Field(
        ...,
@@ -30,6 +32,7 @@ class ComponentSpecInput(BaseModel):
        max_length=100,
    )


class OperatingSystemInput(BaseModel):
    architecture: Literal["x86_64", "x86"]
    family: Literal["RHEL", "UBUNTU", "COREOS", "WINDOWS", "OTHER"]
@@ -44,6 +47,8 @@ class OperatingSystemInput(BaseModel):
        "OS_LICENSE_TYPE_ON_DEMAND",
        "OTHER",
    ]


class RegisterAppDefinitionInput(BaseModel):
    appId: str | None = Field(
        default=None,
@@ -76,7 +81,6 @@ class RegisterAppDefinitionInput(BaseModel):
        ),
    )


    @field_validator("packageType", mode="before")
    @classmethod
    def normalize_package_type(cls, value: str) -> str: