digital-services-act/transparency-database

error message related to illegal_content_explanation

Closed this issue · 1 comments

If we are selecting decision_ground = DECISION_GROUND_ILLEGAL_CONTENT and don't provide the illegal_content_explanation. We are getting the error message illegal content legal ground instead of illegal_content_explanation

/*

{

"message": "The illegal content legal ground field is required when decision ground is illegal content.",

"errors": {

"illegal_content_explanation": [

"The illegal content legal ground field is required when decision ground is illegal content."]}}

*/

done