Commit 3c3a31e9 authored by Jo Sama's avatar Jo Sama 😱
Browse files

Add default override for args to json() in models

parent 87f9913b
......@@ -20,6 +20,10 @@ class BaseModel(pydantic.BaseModel):
return super().dict(
by_alias=by_alias, skip_defaults=skip_defaults, *args, **kwargs)
def json(self, by_alias=True, skip_defaults=True, *args, **kwargs):
return super().json(
by_alias=by_alias, skip_defaults=skip_defaults, *args, **kwargs)
class Identifier(BaseModel):
""" An object with only an ID that references some entity. """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment