diff --git a/services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py b/services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py index 33620c848f2b83cdcad81c253c67579c9c20ed2e..f0226d0fa230277081026b98d547ce7742c684c6 100644 --- a/services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py +++ b/services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py @@ -56,8 +56,8 @@ class EventSubscriptionsOperations(Resource): if event_subscription.supported_features is None: return bad_request_error( - detail="supportedFeatures must be present in this request", - cause="supportedFeatures missed", + detail="supportedFeatures not present in request", + cause="supportedFeatures not present", invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] ) @@ -132,12 +132,12 @@ class EventSubscriptionsOperations(Resource): current_app.logger.debug("Updating event subscription") - # if event_subscription.supported_features is None: - # return bad_request_error( - # detail="supportedFeatures must be present in this request", - # cause="supportedFeatures missed", - # invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] - # ) + if event_subscription.supported_features is None: + return bad_request_error( + detail="supportedFeatures not present in request", + cause="supportedFeatures not present", + invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}] + ) result = self.__check_subscriber_id(subscriber_id)