openrtb
Version:
A Javascript library which builds and validates OpenRTB objects
47 lines (45 loc) • 879 B
JavaScript
const appSchema = require('./app');
const impSchema = require('./imp');
const deviceSchema = require('./device');
const userSchema = require('./user');
const pmpSchema = require('./pmp');
const regsSchema = require('./regs');
const siteSchema = require('./site');
module.exports = {
"properties": {
"id": {
"type": "string"
},
"at": {
"type": "number"
},
"imp": impSchema,
"device": deviceSchema,
"user": userSchema,
"bcat": {
"type": "array",
"items": {
"type": "string"
}
},
"badv": {
"type": "array",
"items": {
"type": "string"
}
},
"test": {
"type": "number"
},
"tmax": {
"type": "number"
},
"site": siteSchema,
"regs": regsSchema,
"ext": {
"type": "object"
}
},
"required": ["id", "imp"]
};