pydantic docstrings

This commit is contained in:
2025-02-16 08:17:27 -05:00
parent 2a57348178
commit f47ea0665f
6 changed files with 51 additions and 11 deletions

View File

@ -29,6 +29,7 @@ class Transcriptions(FastAPI):
async def get_episodes_handler(self, data: ValidShowEpisodeListRequest) -> JSONResponse:
"""
Get list of episodes by show id
- **s**: Show ID to query
"""
show_id: int = data.s
db_path: Optional[Union[str, LiteralString]] = None
@ -86,6 +87,8 @@ class Transcriptions(FastAPI):
async def get_episode_lines_handler(self, data: ValidShowEpisodeLineRequest) -> JSONResponse:
"""
Get lines for a particular episode
- **s**: Show ID to query
- **e**: Episode ID to query
"""
show_id: int = int(data.s)
episode_id: int = int(data.e)
@ -124,5 +127,4 @@ class Transcriptions(FastAPI):
'speaker': item[1].strip(),
'line': item[2].strip(),
} for item in result],
})
})