-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding error check and making sure that priceType can be optional.
- Loading branch information
1 parent
a7ce04f
commit e847ee1
Showing
2 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
adapters/adnuntius/adnuntiustest/supplemental/check-price-type-error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"user": { | ||
"id": "1kjh3429kjh295jkl" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"auId": "123", | ||
"priceType": 123 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [], | ||
"expectedMakeRequestsErrors": [ | ||
{ | ||
"value": "Error unmarshalling ExtImpValues: json: cannot unmarshal number into Go struct field ImpExtAdnunitus.priceType of type string", | ||
"comparison": "literal" | ||
} | ||
] | ||
} |