@bidvol/openrtb-schema-validator
Version:
OpenRTB parser and validator
26 lines (24 loc) • 768 B
JavaScript
'use strict'
const publisherSchema = require('./publisher.schema')
const contentSchema = require('./content.schema')
module.exports = {
additionalProperties: false,
type: 'object',
properties: {
id: { type: 'string' },
name: { type: 'string' },
domain: { type: 'string' },
cat: { items: { type: 'string' } },
sectioncat: { items: { type: 'string' } },
pagecat: { items: { type: 'string' } },
page: { type: 'string' },
ref: { type: 'string' },
search: { type: 'string' },
mobile: { type: 'integer', enum: [0, 1] },
privacypolicy: { type: 'integer', enum: [0, 1] },
publisher: publisherSchema,
content: contentSchema,
keywords: { type: 'string' },
ext: { type: 'object' }
}
}