diff --git a/src/dto/placement.py b/src/dto/placement.py index 4034c10..4d47d3f 100644 --- a/src/dto/placement.py +++ b/src/dto/placement.py @@ -9,9 +9,9 @@ from src import domain class PlacementOutput(pydantic.BaseModel): id: uuid.UUID project_id: uuid.UUID - project_channel_title: str + project_channel_title: str | None placement_channel_id: uuid.UUID - placement_channel_title: str + placement_channel_title: str | None creative_id: uuid.UUID creative_name: str placement_date: datetime.datetime diff --git a/src/main.py b/src/main.py index d9b2d71..ed23cce 100644 --- a/src/main.py +++ b/src/main.py @@ -40,7 +40,13 @@ usecase = Usecase( ) deps.set_usecase(usecase) -app = FastAPI(lifespan=lifespan, version=settings.logger.APP_VERSION) +app = FastAPI( + lifespan=lifespan, + version=settings.logger.APP_VERSION, + swagger_ui_parameters={ + 'defaultModelsExpandDepth': 0, # Сворачиваем Schemas + }, +) app.add_middleware( CORSMiddleware, diff --git a/src/usecase/project/tg_add_project_1.py b/src/usecase/project/tg_add_project_1.py index 8daf424..2c76aba 100644 --- a/src/usecase/project/tg_add_project_1.py +++ b/src/usecase/project/tg_add_project_1.py @@ -80,6 +80,7 @@ async def tg_add_project_1(self: 'Usecase', input: dto.ConnectProjectInput) -> d telegram_id=input.telegram_id, title=input.title, username=input.username, + verification_status=domain.ChannelVerificationStatus.VERIFIED, workspace_id=workspace.id, ) await self.database.create_channel(channel)