own_comments.schemas

Module Contents

Classes

CommentBase

CommentCreateRequest

CommentUpdateMixin

CommentDelete

CommentPatch

CommentCreateResponse

Comment

ThreadBase

Thread

HTTPError

class own_comments.schemas.CommentBase

Bases: pydantic.BaseModel

author_name :str
text :str
class own_comments.schemas.CommentCreateRequest

Bases: CommentBase

thread_id :int
class own_comments.schemas.CommentUpdateMixin

Bases: pydantic.BaseModel

update_key :Optional[str]
class own_comments.schemas.CommentDelete

Bases: CommentUpdateMixin

class own_comments.schemas.CommentPatch

Bases: CommentBase, CommentUpdateMixin

class own_comments.schemas.CommentCreateResponse

Bases: CommentCreateRequest, CommentUpdateMixin

class Config
orm_mode = True
id :int
update_key :str
date_created :datetime.datetime
class own_comments.schemas.Comment

Bases: CommentCreateRequest, CommentUpdateMixin

class Config
orm_mode = True
id :int
date_created :datetime.datetime
date_updated :Optional[datetime.datetime]
approved :bool
deleted :bool
class own_comments.schemas.ThreadBase

Bases: pydantic.BaseModel

path :str
auto_approve :bool
date_created :datetime.datetime
locked :bool
class own_comments.schemas.Thread

Bases: ThreadBase

class Config
orm_mode = True
id :int
comments :list[Comment] = []
class own_comments.schemas.HTTPError

Bases: pydantic.BaseModel

class Config
schema_extra
detail :str