You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SchemaError: [] is not valid under any of the given schemas
Failed validating 'anyOf' in metaschema['properties']['properties']['additionalProperties']['properties']['items']:
{'anyOf': [{'$ref': '#'}, {'$ref': '#/definitions/schemaArray'}],
'default': True}
On schema['properties']['f']['items']:
[]
Is this expected behavior? Would the desired behavior be to set maxItems: 0 and remove items: [] like such (that would make the generated schema valid)?
@PrettyWood no problem! Awesome, thanks for the super quick turn around :D. Looked over your changes and they look good to me – approved as well (FWIW).
Checks
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:This fails with:
The generated schema is:
Is this expected behavior? Would the desired behavior be to set
maxItems: 0
and removeitems: []
like such (that would make the generated schema valid)?BTW, glad to see that empty tuples (
Tuple[()]
) are now supported (#2318)! Thank you 🙏 .The text was updated successfully, but these errors were encountered: