"""Schema for put_mena_products.""" schema = { '$schema': 'http://json-schema.org/draft-04/schema#', 'additionalProperties': False, 'items': { 'type': 'object', 'properties': { 'product_id': { 'type': 'integer', 'description': 'The product id' }, 'review_timestamp': { 'type': 'string', 'pattern': '^([0-9]{4})-(0[1-9]|1[0-2])-(0[0-9]|[12][0-9]|3[' '01])\\s(?:([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][' '0-9]))$', 'description': 'The timestamp of the review.' }, 'review_status': { 'type': 'string', 'enum': [ 'Pending', 'Approved', 'Rejected' ], 'description': 'The status of the review.' } }, 'required': [ 'product_id', 'review_timestamp', 'review_status' ] }, 'type': 'array', 'minItems': 1 }