"""Schema for headers.""" from content_review.constants import header schema = { '$schema': 'http://json-schema.org/draft-04/schema', 'type': 'object', 'properties': { header.GRASS_ACCOUNT_TYPE: { 'example': 'vendor', 'description': 'vendor | subaccount', 'type': 'string', 'pattern': '(vendor)|(subaccount)'}, header.GRASS_ACCOUNT_ID: { 'type': 'string', 'pattern': '^\d+$', 'description': 'vendor_id | subaccount_id'}, header.GRASS_CORRELATION_ID: { 'type': 'string', 'description': 'UUID' } }, 'required': [header.GRASS_ACCOUNT_TYPE, header.GRASS_ACCOUNT_ID] }