Skip to content

Commit

Permalink
[#1194] Fixed Vcon default values and types in the Pydantic model
Browse files Browse the repository at this point in the history
Co-authored-by: sergey <[email protected]>
  • Loading branch information
2 people authored and pair committed Jan 10, 2024
1 parent c180a87 commit 3ff6dd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import traceback
from datetime import datetime
from typing import Dict, List, Union
from typing import Dict, List, Union, Optional
from uuid import UUID

import redis_mgr
Expand Down Expand Up @@ -41,15 +41,15 @@ class Vcon(BaseModel):
vcon: str
uuid: UUID
created_at: Union[int, str, datetime]
subject: str = None
redacted: dict = None
appended: dict = None
subject: Optional[str] = None
redacted: dict = {}
appended: Optional[dict] = None
group: List[Dict] = []
parties: List[Dict] = []
dialog: List[Dict] = []
analysis: List[Dict] = []
attachments: List[Dict] = []
meta: dict = None
meta: dict = {}


if VCON_STORAGE:
Expand Down

0 comments on commit 3ff6dd7

Please sign in to comment.