Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
fix: pydantic version error
Browse files Browse the repository at this point in the history
  • Loading branch information
loyal812 committed Mar 28, 2024
1 parent 3511866 commit 7a7de58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/models/main_model.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field
from typing import Optional

class MainModel(BaseModel):
user: Optional[str] = ""
title: Optional[str] = ""
description: Optional[str] = ""
data_id: Optional[str] = ""
question: Optional[str] = "hi"
user: str = Field(default='')
title: str = Field(default='')
description: str = Field(default='')
data_id: str = Field(default='')
question: str = Field(default='')

0 comments on commit 7a7de58

Please sign in to comment.