mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-04 02:12:59 +00:00
Set json indent=2 for pydantic rows
This commit is contained in:
parent
42e33b72b2
commit
e267bbf1c8
@ -198,7 +198,7 @@ class Table:
|
||||
|
||||
def setitem_pydantic(self, key, value: BaseModel):
|
||||
self.__setitem__(key, {
|
||||
"json": value.json(encoder=_json_encoder),
|
||||
"json": value.json(encoder=_json_encoder, indent=2),
|
||||
"__class": value.__class__.__name__,
|
||||
"__module": value.__class__.__module__,
|
||||
"__pydantic": 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user