Skip to content

Commit

Permalink
fix(kakao-auth): 옵셔널 항목 처리 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mincheol Kim authored Dec 7, 2020
1 parent 30a0fdd commit d8301a0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/apps/oauth/models/domain/kakao.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

from pydantic import BaseModel, Extra


Expand All @@ -22,12 +24,13 @@ class Config:
class KakaoAccount(BaseModel):
profile_needs_agreement: bool
profile: Profile
has_age_range: bool
age_range_needs_agreement: bool
age_range: str
has_gender: bool
gender_needs_agreement: bool
gender: str

has_age_range: Optional[bool]
age_range_needs_agreement: Optional[bool]
age_range: Optional[str]
has_gender: Optional[bool]
gender_needs_agreement: Optional[bool]
gender: Optional[str]

class Config:
extra = Extra.allow

0 comments on commit d8301a0

Please sign in to comment.