{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": ["corrections"], "properties": { "corrections": { "type": "array", "items": { "type": "object", "properties": { "primary_key": { "type": "string", "pattern": "^[\\S]+$" }, "loc": { "type": "integer", "minimum": 0 }, "correction_comment": { "type": "string" }, "module": { "type": "string", "pattern": "^[a-z0-9-\\.]+$" }, "subject": { "type": "string" }, "change_id": { "type": ["array", "null"], "items": { "type": "string", "pattern": "^I[a-z0-f]{40}$" }, "minItems": 0 }, "author_email": { "type": "string", "pattern": "^[a-z\\d_\\.\\+-]+@([a-z\\d\\.-]+\\.)+[a-z]+$" } }, "required": ["primary_key", "correction_comment"] } } } }