Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #633 from cisco-open/624-ux20-variables-validation…
Browse files Browse the repository at this point in the history
…-error

UX20 Variables validation error [#624]
  • Loading branch information
jpkrajewski authored May 7, 2024
2 parents 7e5bd30 + c1e00f9 commit 6105e53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions catalystwan/endpoints/configuration_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6105e53

Please sign in to comment.