From 3592771aebf1c2719fe01575168087e2699b2a73 Mon Sep 17 00:00:00 2001 From: Zacharias Zacharodimos Date: Fri, 20 Oct 2023 13:49:53 +0200 Subject: [PATCH] resources: make search request args class configurable --- invenio_rdm_records/resources/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invenio_rdm_records/resources/config.py b/invenio_rdm_records/resources/config.py index 79c21c54c..1a6895ce6 100644 --- a/invenio_rdm_records/resources/config.py +++ b/invenio_rdm_records/resources/config.py @@ -152,7 +152,9 @@ class RDMRecordResourceConfig(RecordResourceConfig, ConfiguratorMixin): ), } - request_search_args = RDMSearchRequestArgsSchema + request_search_args = FromConfig( + "RDM_SEARCH_ARGS_SCHEMA", default=RDMSearchRequestArgsSchema + ) response_handlers = FromConfig( "RDM_RECORDS_SERIALIZERS",