참고소스 수정본
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ArbitraryModel(BaseModel):
|
||||
"""Empty Pydantic model with a config that allows arbitrary types and
|
||||
aliases."""
|
||||
|
||||
model_config = {
|
||||
"validate_by_alias": True,
|
||||
"validate_by_name": True,
|
||||
"arbitrary_types_allowed": True,
|
||||
}
|
||||
Reference in New Issue
Block a user