feat(api): sessions search remove duplicate values
This commit is contained in:
parent
5b30385256
commit
c9169f5cdb
1 changed files with 6 additions and 0 deletions
|
|
@ -460,6 +460,12 @@ class IssueType(str, Enum):
|
|||
class __MixedSearchFilter(BaseModel):
|
||||
is_event: bool = Field(...)
|
||||
|
||||
@root_validator(pre=True)
|
||||
def remove_duplicate_values(cls, values):
|
||||
if values.get("value") is not None:
|
||||
values["value"] = list(set(values["value"]))
|
||||
return values
|
||||
|
||||
class Config:
|
||||
alias_generator = attribute_to_camel_case
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue