Giter Site home page Giter Site logo

openrtb-schema-validator's People

Contributors

oiime avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

edmonl bidvol

openrtb-schema-validator's Issues

Request validation fails if imp.native.request is object

The ORTB Native specs 1.1 allows direct JSON or JSON-encoded string
https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-Native-Ads-Specification-1-1_2016.pdf

But if I pass native request as JSON object, validation fails.

Request eg.

{ "ext": {}, "cur": [], "allimps": 0, "test": 0, "regs": { "ext": { "gdpr": 0 } }, "source": {}, "imp": [ { "iframebuster": [], "ext": { "siteid": null }, "pmp": { "ext": {}, "private_auction": 0, "deals": [] }, "native": { "ext": {}, "request": { "native": { "ext": {}, "plcmtcnt": 1, "ver": "1.1", "assets": [ { "img": { "h": 627, "hmin": 72, "type": 3, "wmin": 137, "w": 1200 }, "required": 1, "id": 401 }, { "data": { "type": 1 }, "required": 1, "id": 501 }, { "data": { "type": 11 }, "required": 1, "id": 502 }, { "title": { "len": 75 }, "required": 1, "id": 601 } ], "context": 1, "plcmttype": 1, "contextsubtype": 10 } }, "battr": [], "ver": "1.1", "api": [] }, "tagid": "", "metric ": [], "bidfloor": 0, "bidfloorcur": "USD", "id": "1", "secure": 1, "instl": 0 } ], "bapp": [], "site": { "id": "dHP", "sectioncat": [], "ext": {}, "keywords": "", "cat": [], "domain": "msn.com", "publisher": { "ext": {}, "id": "1111", "cat": [] }, "page": "https://www.test.com", "pagecat": [], "content": { "ext": {}, "producer": { "ext": {}, "cat": [] }, "data": [], "cat": [] } }, "at": 1, "bcat": [ "IAB25-3", "IAB25-2", "IAB25-1", "IAB26", "IAB25-5", "IAB25-4" ], "wlang": [], "id": "999999999999999999999", "bseat": {}, "user": { "ext": {}, "geo": { "ext": {} }, "id": "9999999999999999", "data": [] }, "device": { "ext": {}, "geo": { "ext": {} }, "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36", "ip": "1.1.1.1" }, "wseat": [], "badv": ["testing.com"] }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.