Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AttributeError: 'NoneType' object has no attribute 'min_items' #965
I get an AttributeError while trying to generate a schema for a dictionary with values of type list.
from typing import Dict, List from pydantic import BaseModel class SomeSchema(BaseModel): entries: Dict[str, List[int]] SomeSchema.schema()
Which results in
Is this a bug or do I need to define the schema in a different way?