Update the OP25 generator model to take either a string or an int
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from typing import List, Optional
|
from typing import List, Optional, Union
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ class TalkgroupTag(BaseModel):
|
|||||||
class ConfigGenerator(BaseModel):
|
class ConfigGenerator(BaseModel):
|
||||||
type: DecodeMode
|
type: DecodeMode
|
||||||
systemName: str
|
systemName: str
|
||||||
channels: List[str]
|
channels: List[Union[int, str]]
|
||||||
tags: Optional[List[TalkgroupTag]]
|
tags: Optional[List[TalkgroupTag]]
|
||||||
whitelist: Optional[List[int]]
|
whitelist: Optional[List[int]]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user