habulaj commited on
Commit
11501ad
·
verified ·
1 Parent(s): 52dbbff

Update routes/onboarding.py

Browse files
Files changed (1) hide show
  1. routes/onboarding.py +2 -2
routes/onboarding.py CHANGED
@@ -3,7 +3,7 @@ import logging
3
  import aiohttp
4
  from pydantic import BaseModel
5
  from fastapi import APIRouter, HTTPException, Body, Query
6
- from typing import List, Dict, Any, Optional
7
 
8
  router = APIRouter()
9
 
@@ -18,7 +18,7 @@ class CreateOnboardingQuestion(BaseModel):
18
  title: Optional[str] = None
19
  question_type: Optional[str] = None
20
  optional: Optional[bool] = None
21
- options: Optional[List[str]] = None
22
  target_type: str
23
 
24
  # Supabase configs
 
3
  import aiohttp
4
  from pydantic import BaseModel
5
  from fastapi import APIRouter, HTTPException, Body, Query
6
+ from typing import List, Dict, Any, Optional, Union
7
 
8
  router = APIRouter()
9
 
 
18
  title: Optional[str] = None
19
  question_type: Optional[str] = None
20
  optional: Optional[bool] = None
21
+ options: Optional[Union[List[str], str, dict]] = None
22
  target_type: str
23
 
24
  # Supabase configs