From 770729a72e3f95648cfa30d0edb33910f10f1e6a Mon Sep 17 00:00:00 2001 From: Jose Plana Date: Wed, 6 Mar 2019 13:07:25 +0100 Subject: [PATCH] Allow csr to be empty during upload --- lemur/certificates/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/certificates/schemas.py b/lemur/certificates/schemas.py index 3813d5b7..64cc487f 100644 --- a/lemur/certificates/schemas.py +++ b/lemur/certificates/schemas.py @@ -255,7 +255,7 @@ class CertificateUploadInputSchema(CertificateCreationSchema): private_key = fields.String() body = fields.String(required=True) chain = fields.String(missing=None, allow_none=True) - csr = fields.String(required=False, valudate=validators.csr) + csr = fields.String(required=False, allow_none=True, validate=validators.csr) destinations = fields.Nested(AssociatedDestinationSchema, missing=[], many=True) notifications = fields.Nested(AssociatedNotificationSchema, missing=[], many=True)