Closed nick-konovalchuk closed 3 months ago
This might be related https://github.com/jina-ai/jina/issues/6030
This is indeed strange, I will take a look
This is the underlying cause of the issue:
from docarray import BaseDoc
class DummyDoc(BaseDoc):
number: float
from jina.serve.runtimes.helper import _create_aux_model_doc_list_to_list, _create_pydantic_model_from_schema
model = _create_pydantic_model_from_schema(model_name='DummyDoc2',
schema=_create_aux_model_doc_list_to_list(DummyDoc).schema(),
cached_models={})
model(number=0.5)
This fails.
Describe the bug I'm trying to use a doc with a float field. Sending a request via Swagger page. Pydantic does list checks for the float field
geting
This issue only happens when deployed with jina. Regular method work fine
Describe how you solve it
Environment
Screenshots