diff --git a/samples/positive/development/violence_sample.json b/samples/positive/development/violence_sample.json new file mode 100644 index 0000000..5eb1575 --- /dev/null +++ b/samples/positive/development/violence_sample.json @@ -0,0 +1,24 @@ +{ + "Version": "development", + "ReporterInfo": { + "ReporterType": "Person", + "ReporterContactEmail": "contact@example.com", + "ReporterContactName": "Harassed McPerson", + "ReporterContactPhone": "+ 01 555 1234567" + }, + "Disclosure": true, + "Report": { + "ReportClass": "Content", + "ReportType": "Violence", + "Date": "2022-09-09T14:17:10Z", + "SourceUrl": "http://irc.5ch.net", + "Samples": [ + { + "ContentType": "image/x-uri", + "Base64Encoded": false, + "Description": "Url to an image ", + "Payload": "https://imagehostingservice.tld/image/123456789" + } + ] + } +} diff --git a/schemas/development/violence.schema.json b/schemas/development/violence.schema.json new file mode 100644 index 0000000..7c8cde3 --- /dev/null +++ b/schemas/development/violence.schema.json @@ -0,0 +1,39 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://raw.githubusercontent.com/xarf/schema-discussion/master/schemas/development/violence.schema.json", + "title": "XARF VIOLENCE", + "description": "A format to report violence.", + "allOf": [ + { + "$ref": "xarf_shared.schema.json#/properties/XarfBase" + }, + { + "type": "object", + "properties": { + "Report": { + "allOf": [ + { + "$ref": "xarf_shared.schema.json#/properties/IpAndUrlBasedReport" + }, + { + "type": "object", + "properties": { + "ReportClass": { + "type": "string", + "enum": ["Content"] + }, + "ReportType": { + "type": "string", + "enum": ["Violence"] + } + } + }, + { + "$ref": "xarf_shared.schema.json#/properties/CommonProps" + } + ] + } + } + } + ] +} diff --git a/schemas/development/xarf.schema.json b/schemas/development/xarf.schema.json index 1454df2..1ffddb4 100644 --- a/schemas/development/xarf.schema.json +++ b/schemas/development/xarf.schema.json @@ -51,6 +51,9 @@ }, { "$ref": "harassment.schema.json" + }, + { + "$ref": "violence.schema.json" } ] }