From 7b492c5cd572f9dd607a4becfdd68ed9b4999f96 Mon Sep 17 00:00:00 2001 From: Sander Jochems Date: Sat, 22 Feb 2025 14:57:46 +0100 Subject: [PATCH] Set format to binary for certificate files --- .../paths/nginx/certificates/certID/upload/post.json | 9 ++++++--- .../schema/paths/nginx/certificates/validate/post.json | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/backend/schema/paths/nginx/certificates/certID/upload/post.json b/backend/schema/paths/nginx/certificates/certID/upload/post.json index f38b8102..711e16c4 100644 --- a/backend/schema/paths/nginx/certificates/certID/upload/post.json +++ b/backend/schema/paths/nginx/certificates/certID/upload/post.json @@ -30,13 +30,16 @@ "required": ["certificate", "certificate_key"], "properties": { "certificate": { - "type": "string" + "type": "string", + "format": "binary" }, "certificate_key": { - "type": "string" + "type": "string", + "format": "binary" }, "intermediate_certificate": { - "type": "string" + "type": "string", + "format": "binary" } } } diff --git a/backend/schema/paths/nginx/certificates/validate/post.json b/backend/schema/paths/nginx/certificates/validate/post.json index 21eb325e..f8f9531d 100644 --- a/backend/schema/paths/nginx/certificates/validate/post.json +++ b/backend/schema/paths/nginx/certificates/validate/post.json @@ -18,13 +18,16 @@ "required": ["certificate", "certificate_key"], "properties": { "certificate": { - "type": "string" + "type": "string", + "format": "binary" }, "certificate_key": { - "type": "string" + "type": "string", + "format": "binary" }, "intermediate_certificate": { - "type": "string" + "type": "string", + "format": "binary" } } }