diff --git a/schemas/none.py b/schemas/none.py new file mode 100644 index 0000000..dc74921 --- /dev/null +++ b/schemas/none.py @@ -0,0 +1,18 @@ +from pydantic import BaseModel, Field + +class MessageBase(BaseModel): + message: str = Field(default="yoloo!!", min_length=1) + + class Config: + schema_extra = { + "example": { + "message": "yoloo!!" + } + } + +class MessageCreate(MessageBase): + pass + +class Message(MessageBase): + class Config: + orm_mode = True \ No newline at end of file