:py:mod:`own_comments.schemas` ============================== .. py:module:: own_comments.schemas Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: own_comments.schemas.CommentBase own_comments.schemas.CommentCreateRequest own_comments.schemas.CommentUpdateMixin own_comments.schemas.CommentDelete own_comments.schemas.CommentPatch own_comments.schemas.CommentCreateResponse own_comments.schemas.Comment own_comments.schemas.ThreadBase own_comments.schemas.Thread own_comments.schemas.HTTPError .. py:class:: CommentBase Bases: :py:obj:`pydantic.BaseModel` .. py:attribute:: author_name :annotation: :str .. py:attribute:: text :annotation: :str .. py:class:: CommentCreateRequest Bases: :py:obj:`CommentBase` .. py:attribute:: thread_id :annotation: :int .. py:class:: CommentUpdateMixin Bases: :py:obj:`pydantic.BaseModel` .. py:attribute:: update_key :annotation: :Optional[str] .. py:class:: CommentDelete Bases: :py:obj:`CommentUpdateMixin` .. py:class:: CommentPatch Bases: :py:obj:`CommentBase`, :py:obj:`CommentUpdateMixin` .. py:class:: CommentCreateResponse Bases: :py:obj:`CommentCreateRequest`, :py:obj:`CommentUpdateMixin` .. py:class:: Config .. py:attribute:: orm_mode :annotation: = True .. py:attribute:: id :annotation: :int .. py:attribute:: update_key :annotation: :str .. py:attribute:: date_created :annotation: :datetime.datetime .. py:class:: Comment Bases: :py:obj:`CommentCreateRequest`, :py:obj:`CommentUpdateMixin` .. py:class:: Config .. py:attribute:: orm_mode :annotation: = True .. py:attribute:: id :annotation: :int .. py:attribute:: date_created :annotation: :datetime.datetime .. py:attribute:: date_updated :annotation: :Optional[datetime.datetime] .. py:attribute:: approved :annotation: :bool .. py:attribute:: deleted :annotation: :bool .. py:class:: ThreadBase Bases: :py:obj:`pydantic.BaseModel` .. py:attribute:: path :annotation: :str .. py:attribute:: auto_approve :annotation: :bool .. py:attribute:: date_created :annotation: :datetime.datetime .. py:attribute:: locked :annotation: :bool .. py:class:: Thread Bases: :py:obj:`ThreadBase` .. py:class:: Config .. py:attribute:: orm_mode :annotation: = True .. py:attribute:: id :annotation: :int .. py:attribute:: comments :annotation: :list[Comment] = [] .. py:class:: HTTPError Bases: :py:obj:`pydantic.BaseModel` .. py:class:: Config .. py:attribute:: schema_extra .. py:attribute:: detail :annotation: :str