When using min_length on Sequence field, outputted JSON schema is minLength
instead of minItems
for array type
#9256
Labels
minLength
instead of minItems
for array type
#9256
Initial Checks
Description
The above returns a JSON schema
which uses
minLength
rather thanminItems
which is incorrect.However, when we use
array: list[int]
, the JSON schema correctly usesminItems
.Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: