change(api): conditions validation
This commit is contained in:
parent
be5ba8235a
commit
1c28f0cb08
1 changed files with 1 additions and 1 deletions
|
|
@ -1414,7 +1414,7 @@ class FeatureFlagSchema(BaseModel):
|
|||
flag_type: FeatureFlagType = Field(default=FeatureFlagType.single_variant)
|
||||
is_persist: Optional[bool] = Field(default=False)
|
||||
is_active: Optional[bool] = Field(default=True)
|
||||
conditions: List[FeatureFlagCondition] = Field(default=[])
|
||||
conditions: List[FeatureFlagCondition] = Field(default=[], min_items=1)
|
||||
|
||||
class Config:
|
||||
alias_generator = attribute_to_camel_case
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue