diff --git a/src/server/BreCal/validators/input_validation_shipcall.py b/src/server/BreCal/validators/input_validation_shipcall.py index 23f46ca..729a896 100644 --- a/src/server/BreCal/validators/input_validation_shipcall.py +++ b/src/server/BreCal/validators/input_validation_shipcall.py @@ -58,7 +58,7 @@ class InputValidationShipcall(): InputValidationShipcall.check_participant_list_not_empty_when_user_is_agency(loadedModel) # check for reasonable values in the shipcall fields - InputValidationShipcall.check_shipcall_values(loadedModel, content, forbidden_keys=["canceled", "evaluation", "evaluation_message"]) + InputValidationShipcall.check_shipcall_values(loadedModel, content, forbidden_keys=["evaluation", "evaluation_message"]) # "canceled" return @staticmethod @@ -98,7 +98,7 @@ class InputValidationShipcall(): return @staticmethod - def check_shipcall_values(loadedModel:dict, content:dict, forbidden_keys:list=["canceled", "evaluation", "evaluation_message"]): + def check_shipcall_values(loadedModel:dict, content:dict, forbidden_keys:list=["evaluation", "evaluation_message"]): """ individually checks each value provided in the loadedModel/content. This function validates, whether the values are reasonable. @@ -248,7 +248,7 @@ class InputValidationShipcall(): raise ValidationError(f"every participant id and type should be listed only once. Found multiple entries for one of the participants.") @staticmethod - def check_forbidden_arguments(content:dict, forbidden_keys=["canceled", "evaluation", "evaluation_message"]): + def check_forbidden_arguments(content:dict, forbidden_keys=["evaluation", "evaluation_message"]): """ a post-request must not contain the arguments 'canceled', 'evaluation', 'evaluation_message'. a put-request must not contain the arguments 'evaluation', 'evaluation_message'