-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: Add validation by BIDDER.yaml for media types #1798
Conversation
src/main/java/org/prebid/server/bidder/BidderMediaTypeProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/BidderMediaTypeProcessor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks super useful. If I understand the change correctly, unsupported media type configurations for a bid will be removed depending on the bidders yml config?
I wonder why this is not enabled by default then.
|
||
public interface MediaTypeProcessor { | ||
|
||
MediaTypeProcessingResult process(BidRequest bidRequest, String supportedBidderName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be awesome to add some documentation what the use cases are for this processor is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -34,8 +35,8 @@ public static BidderInfo create(boolean enabled, | |||
String endpoint, | |||
String aliasOf, | |||
String maintainerEmail, | |||
List<String> appMediaTypes, | |||
List<String> siteMediaTypes, | |||
List<MediaType> appMediaTypes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really appreciate string being replaced by proper types 👍
…media-type # Conflicts: # src/main/java/org/prebid/server/auction/ExchangeService.java # src/test/java/org/prebid/server/auction/ExchangeServiceTest.java
…media-type # Conflicts: # src/main/java/org/prebid/server/bidder/BidderInfo.java # src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy # src/test/java/org/prebid/server/bidder/BidderCatalogTest.java # src/test/java/org/prebid/server/handler/info/BidderDetailsHandlerTest.java
# Conflicts: # src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
…media-type # Conflicts: # src/main/java/org/prebid/server/bidder/HttpBidderRequester.java
dceefe2
to
688155e
Compare
No description provided.