DocList does not generate a correct JSONSchema; the schema of the documents in the doclist do not show up:
from docarray import BaseDoc, DocList
import pydantic
class Doc(BaseDoc):
...
print(pydantic.schema_of(DocList[Doc]))
print(pydantic.schema_of(List[Doc]))
class DocDoc(BaseDoc):
docs: DocList[Doc]
print(print(DocDoc.schema()))
This is the cause of OpenAPI through FastAPI not working properly, as seen in #1449