diff --git a/catalystwan/endpoints/configuration_group.py b/catalystwan/endpoints/configuration_group.py index 9fc42a78..c475439c 100644 --- a/catalystwan/endpoints/configuration_group.py +++ b/catalystwan/endpoints/configuration_group.py @@ -2,7 +2,7 @@ # mypy: disable-error-code="empty-body" from datetime import datetime -from typing import Any, List, Optional +from typing import Any, List, Optional, Union from uuid import UUID from pydantic import BaseModel, ConfigDict, Field @@ -88,9 +88,12 @@ class ConfigGroupVariablesCreatePayload(BaseModel): suggestions: bool = True +VariableType = Union[str, int, bool, List[Union[str, int, bool]]] + + class VariableData(BaseModel): name: str - value: str + value: Optional[VariableType] = None class DeviceVariables(BaseModel):