From 66c38fa44ef0d7f5ae3ade8cd8621718fe414874 Mon Sep 17 00:00:00 2001 From: Onkar Hanumante Date: Mon, 21 Aug 2023 13:06:07 +0530 Subject: [PATCH] fix semgrep error message (#3038) co-authored by @onkarvhanumante --- .semgrep/adapter/parse-bid-type-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.semgrep/adapter/parse-bid-type-check.yml b/.semgrep/adapter/parse-bid-type-check.yml index e2d3624115b..daa70684023 100644 --- a/.semgrep/adapter/parse-bid-type-check.yml +++ b/.semgrep/adapter/parse-bid-type-check.yml @@ -1,6 +1,8 @@ rules: - id: parse-bid-type-check - message: The current implementation follows an anti-pattern, assumes that if there is a multi-format request, the media type defaults to $ORTBTYPE. Prebid server expects the media type to be explicitly set in the adapter response. Therefore, we strongly recommend implementing a pattern where the adapter server sets the [MType](https://github.com/prebid/openrtb/blob/main/openrtb2/bid.go#L334) field in the response to accurately determine the media type for the impression. + message: > + Prebid server expects the media type to be explicitly set in the adapter response. + Therefore, recommends implementing a pattern where the adapter server sets the [MType](https://github.com/prebid/openrtb/blob/main/openrtb2/bid.go#L334) field in the response to accurately determine the media type for the impression. languages: - go severity: WARNING