"""Schema for JSON. =================== Schema for payload of request, received from SQS. """ from salessheets.constants import pdf schema = { 'type': 'object', 'properties': { 'product_id': { 'type': 'array', 'items': {'type': 'string'}, 'required': True }, 'output_type': { 'type': 'string', 'enum': [pdf.SINGLE_PDF, pdf.ZIPPED_PDF], 'required': True }, 'job_id': { 'type': 'string', 'required': True }, 'localized_template_type_id': { 'type': 'integer', 'required': False } }, 'additionalProperties': False }