Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
import sys; print(sys.version)
import pydantic; print(pydantic.VERSION)
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
entries: Dict[str, List[int]]
Which results in AttributeError: 'NoneType' object has no attribute 'min_items'
AttributeError: 'NoneType' object has no attribute 'min_items'
Is this a bug or do I need to define the schema in a different way?
The text was updated successfully, but these errors were encountered:
Thanks for reporting, fixed on #969. Let me know if that fixes your problem, I'll release an update in a day or two.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.