{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Report", "additionalProperties": false, "type": "object", "properties": { "size": { "type": "integer", "minimum": 0 }, "map": { "type": "object", "patternProperties": { "^(.*)$": { "title": "OperationMapRecord", "additionalProperties": false, "type": "object", "properties": { "operation": { "type": "string" }, "operationName": { "type": "string" }, "fields": { "minItems": 1, "type": "array", "items": { "type": "string" } } }, "required": ["operation", "fields"] } } }, "operations": { "type": "array", "items": { "title": "RequestOperation", "additionalProperties": false, "type": "object", "properties": { "timestamp": { "type": "integer", "minimum": 0 }, "operationMapKey": { "type": "string" }, "execution": { "title": "Execution", "additionalProperties": false, "type": "object", "properties": { "ok": { "type": "boolean" }, "duration": { "type": "integer", "minimum": 0 }, "errorsTotal": { "type": "integer", "minimum": 0 } }, "required": ["ok", "duration", "errorsTotal"] }, "metadata": { "title": "Metadata", "additionalProperties": false, "type": "object", "properties": { "client": { "title": "Client", "additionalProperties": false, "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "version"] } } }, "persistedDocumentHash": { "type": "string", "title": "PersistedDocumentHash", "pattern": "^[a-zA-Z0-9_-]{1,64}~[a-zA-Z0-9._-]{1,64}~([A-Za-z]|[0-9]|_){1,128}$" } }, "required": ["timestamp", "operationMapKey", "execution"] } }, "subscriptionOperations": { "type": "array", "items": { "title": "SubscriptionOperation", "additionalProperties": false, "type": "object", "properties": { "timestamp": { "type": "integer", "minimum": 0 }, "operationMapKey": { "type": "string" }, "metadata": { "title": "Metadata", "additionalProperties": false, "type": "object", "properties": { "client": { "title": "Client", "additionalProperties": false, "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" } }, "required": ["name", "version"] } } } }, "required": ["timestamp", "operationMapKey"] } } }, "required": ["size", "map"] }