ValidationErrorSchema now has minItems 1 for its arrays

This commit is contained in:
vfbd 2022-08-08 13:22:18 -04:00
parent 596f619999
commit de1e8f266a
1 changed files with 1 additions and 1 deletions

View File

@ -6713,7 +6713,7 @@ api_out_of_memory_response = """507:
type: out_of_memory.unknown.unknown""" type: out_of_memory.unknown.unknown"""
class ValidationErrorSchema(KoboldSchema): class ValidationErrorSchema(KoboldSchema):
detail: Dict[str, List[str]] = fields.Dict(keys=fields.String(), values=fields.List(fields.String()), required=True) detail: Dict[str, List[str]] = fields.Dict(keys=fields.String(), values=fields.List(fields.String(), validate=validate.Length(min=1)), required=True)
api_validation_error_response = """422: api_validation_error_response = """422:
description: Validation error description: Validation error