mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
fix: ensure show_filters_icon is always returned in API responses
Set default value for show_filters_icon in LinkBase schema to ensure the field is always included in API responses, even when response_model_exclude_unset=True is used.
This commit is contained in:
1 file changed
+1
-1
@@ -62,7 +62,7 @@ class LinkBase(BaseModel):
|
||||
suspend: Optional[bool] = None
|
||||
link_style: Optional[LinkStyle] = None
|
||||
filters: Optional[dict] = None
|
||||
show_filters_icon: Optional[bool] = None
|
||||
show_filters_icon: Optional[bool] = Field(default=True, description="Show filters icon in Web UI")
|
||||
|
||||
|
||||
class LinkCreate(LinkBase):
|
||||
|
||||
Reference in new issue
Block a user