Open auxsvr opened 1 year ago
Probably because of the solution to #4, calling .schema() with most models fails with error message:
.schema()
TypeError: issubclass() arg 1 must be a class
The solution seems to be to load all the models, then call .update_forward_refs() for each, which takes a lot of time and memory.
.update_forward_refs()
This is with Python 3.10, pydantic 1.10.4, pydantic-schemaorg 1.0.6.
Probably because of the solution to #4, calling
.schema()
with most models fails with error message:The solution seems to be to load all the models, then call
.update_forward_refs()
for each, which takes a lot of time and memory.This is with Python 3.10, pydantic 1.10.4, pydantic-schemaorg 1.0.6.