From 2869042f38d40edfe5d99182995b10a4b5c1cce8 Mon Sep 17 00:00:00 2001 From: Cyril Dangerville Date: Sat, 4 Aug 2018 00:26:48 +0200 Subject: [PATCH] Fixed invalid JSON payloads (making API requests fail in particular) (#1522) --- lemur/authorities/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lemur/authorities/views.py b/lemur/authorities/views.py index 6bf7e2a8..b85c9b70 100644 --- a/lemur/authorities/views.py +++ b/lemur/authorities/views.py @@ -90,7 +90,7 @@ class AuthoritiesList(AuthenticatedResource): "owner": "secure@example.com", "id": 43, "description": "This is the ROOT certificate for the TestAuthority certificate authority." - } + }], "total": 1 } @@ -136,7 +136,7 @@ class AuthoritiesList(AuthenticatedResource): "sensitivity": "medium", "keyType": "RSA2048", "plugin": { - "slug": "cloudca-issuer", + "slug": "cloudca-issuer" }, "name": "TimeTestAuthority5", "owner": "secure@example.com", @@ -148,6 +148,7 @@ class AuthoritiesList(AuthenticatedResource): "names": [] }, "custom": [] + } } **Example response**: @@ -499,6 +500,7 @@ class AuthorityVisualizations(AuthenticatedResource): {"name": "MergeEdge", "size": 743} ] } + ] } ]} """