🔧 chore(schema.py): add 'private' field to the ListComponentResponse schema to support private components
This commit is contained in:
parent
7549cbb90b
commit
0f21f1c800
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class ListComponentResponse(BaseModel):
|
||||||
tags: Optional[List[TagResponse]] = None
|
tags: Optional[List[TagResponse]] = None
|
||||||
downloads_count: Optional[int]
|
downloads_count: Optional[int]
|
||||||
last_tested_version: Optional[str]
|
last_tested_version: Optional[str]
|
||||||
|
private: Optional[bool] = None
|
||||||
|
|
||||||
# tags comes as a TagsIdResponse but we want to return a list of TagResponse
|
# tags comes as a TagsIdResponse but we want to return a list of TagResponse
|
||||||
@validator("tags", pre=True)
|
@validator("tags", pre=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue