🔧 chore(schema.py): add 'private' field to the ListComponentResponse schema to support private components

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-21 17:20:48 -03:00
commit 0f21f1c800

View file

@ -34,6 +34,7 @@ class ListComponentResponse(BaseModel):
tags: Optional[List[TagResponse]] = None
downloads_count: Optional[int]
last_tested_version: Optional[str]
private: Optional[bool] = None
# tags comes as a TagsIdResponse but we want to return a list of TagResponse
@validator("tags", pre=True)