Describe the bug
I upgraded from 0.26.1 to 0.26.2 and am now getting a maximum recursion depth exceeded.
To Reproduce
Schema (snippet):
"NullableArticle": {
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title"
},
"date_published": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Date Published"
}
},
"type": "object",
"title": "NullableArticle"
},
Previous output:
class NullableArticle(BaseModel):
title: Optional[str] = Field(None, title="Title")
date_published: Optional[Union[AwareDatetime, date]] = Field(
None, title="Date Published"
)
New output:
class NullableArticle(BaseModel):
title: Optional[str] = Field(None, title="Title")
date_published: Optional[Union[datetime, date]] = Field(
None, title="Date Published"
)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too