From 0cf170e6cde2433c7f2f9c0215fab0595a24c908 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 13 Mar 2023 13:55:12 +0100 Subject: [PATCH] Make Patch `state` field similar to Issue Since they are similar objects, they should have similar structure. This also makes it easier to add state metadata like for issues. --- radicle-httpd/src/api/v1/projects.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index 0720b25d7..db28382af 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -1351,7 +1351,7 @@ mod routes { }, "title": "A new `hello word`", "description": "change `hello world` in README to something else", - "state": "proposed", + "state": { "status": "proposed" }, "target": "delegates", "tags": [], "revisions": [ @@ -1382,7 +1382,7 @@ mod routes { }, "title": "A new `hello word`", "description": "change `hello world` in README to something else", - "state": "proposed", + "state": { "status": "proposed" }, "target": "delegates", "tags": [], "revisions": [ @@ -1452,7 +1452,7 @@ mod routes { }, "title": "Update README", "description": "Do some changes to README", - "state": "proposed", + "state": { "status": "proposed" }, "target": "delegates", "tags": [], "revisions": [