Allow csr to be empty during upload

This commit is contained in:
Jose Plana 2019-03-06 13:07:25 +01:00
parent 2ff811ae71
commit 770729a72e
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ class CertificateUploadInputSchema(CertificateCreationSchema):
private_key = fields.String() private_key = fields.String()
body = fields.String(required=True) body = fields.String(required=True)
chain = fields.String(missing=None, allow_none=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) destinations = fields.Nested(AssociatedDestinationSchema, missing=[], many=True)
notifications = fields.Nested(AssociatedNotificationSchema, missing=[], many=True) notifications = fields.Nested(AssociatedNotificationSchema, missing=[], many=True)