From 8139d445a0bb5fb0d6563f18d7eacf0e0cbc3aa4 Mon Sep 17 00:00:00 2001 From: jrcastro2 Date: Mon, 2 Sep 2024 11:16:54 +0200 Subject: [PATCH] resource: fix add record to community * Removes response_handler to avoid allowing to process the response with the schema * closes https://github.com/inveniosoftware/invenio-app-rdm/issues/2821 --- invenio_rdm_records/resources/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_rdm_records/resources/resources.py b/invenio_rdm_records/resources/resources.py index e1078a19e..2afe6fe07 100644 --- a/invenio_rdm_records/resources/resources.py +++ b/invenio_rdm_records/resources/resources.py @@ -344,8 +344,8 @@ def search(self): ) return items.to_dict(), 200 + # No response_handler here because we dont want to process the response with the schema @request_view_args - @response_handler() @request_data def add(self): """Include record in communities."""