# generated by datamodel-codegen:
#   filename:  api/feed/createPost.json
#   timestamp: 2022-10-03T15:16:21+00:00

from __future__ import annotations

from pydantic import BaseModel, Extra, Field


class CreatePostRequest(BaseModel):
    class Config:
        extra = Extra.forbid

    message: str = Field(
        ...,
        description='Message in markdown format. See markdown support for more details.',
    )
    from_: str = Field(
        ..., alias='from', description='Name of the User posting the message'
    )
