-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] MissionDonation 클래스에 nickname, user_id, totalPayAmount 등 추가 #37
Comments
class ChzzkModel(BaseModel):
model_config = ConfigDict(
alias_generator=to_camel,
frozen=True,
extra=Extra.allow # Extra enumeration had deprecated.
)
... pydantic의 공식문서에 따르면 ModelConfig에 extra 값을 "allow"로 설정하면, 정의된 Attribute(구성)외에 추가적인 데이터가 들어왔을 때에도 접근할 수 있도록 설정할 수 있습니다. 예를 들면 다음과 같습니다.
누락된 속성에 대해서는 데이터클래스에 추가함으로서, 적절하게 대응할 예정입니다. |
말씀하신 속성(Attribute)에 대해서는 |
자세한 답변 감사합니다. |
미션 발생 시 데이터에 nickname, user_id, totalPayAmount 등이 포함되어 있으나
클래스에서 접근할 수 없는 문제가 있습니다.
더 많은 데이터를 사용할 수 있도록 추가 부탁드립니다.
The text was updated successfully, but these errors were encountered: