Changes in embedding.py and symbol.py
Another schema try...
This commit is contained in:
1 parent
69efd51bb5
commit
2cf4f2912a
2 files changed
+2
-2
No files matched your search
@@ -33,7 +33,7 @@ class Embedding:
|
||||
}
|
||||
|
||||
return core_schema.json_or_python_schema(
|
||||
python_schema=handler.generate_schema(cls),
|
||||
python_schema=handler(cls),
|
||||
json_schema=core_schema.plain_serializer_function_ser_schema(
|
||||
serialize, when_used='json'
|
||||
),
|
||||
|
||||
@@ -23,7 +23,7 @@ class Symbol:
|
||||
}
|
||||
|
||||
return core_schema.json_or_python_schema(
|
||||
python_schema=handler.generate_schema(cls),
|
||||
python_schema=handler(cls),
|
||||
json_schema=core_schema.plain_serializer_function_ser_schema(
|
||||
serialize, when_used='json'
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user