From de1e8f266a211b8c54d2000cd5442ed3fe283c95 Mon Sep 17 00:00:00 2001 From: vfbd Date: Mon, 8 Aug 2022 13:22:18 -0400 Subject: [PATCH] ValidationErrorSchema now has minItems 1 for its arrays --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index 93f162dd..b11f0e93 100644 --- a/aiserver.py +++ b/aiserver.py @@ -6713,7 +6713,7 @@ api_out_of_memory_response = """507: type: out_of_memory.unknown.unknown""" 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: description: Validation error