{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "TACITUS request", "type": "object", "required": [ "task", "text" ], "additionalProperties": false, "properties": { "task": { "enum": [ "evidence", "actors", "events" ] }, "text": { "type": "string", "minLength": 1, "maxLength": 12000 }, "claim": { "type": "string", "minLength": 1, "maxLength": 1500 }, "include_participants": { "type": "boolean" }, "trigger": { "type": "object", "required": [ "start", "end", "event_type" ], "additionalProperties": false, "properties": { "start": { "type": "integer", "minimum": 0 }, "end": { "type": "integer", "minimum": 1 }, "event_type": { "enum": [ "Attack", "Arrest", "Military_operation", "Protest", "Request", "Sign_agreement", "Supporting", "Surrendering" ] } } } }, "allOf": [ { "if": { "properties": { "task": { "const": "evidence" } } }, "then": { "required": [ "claim" ], "not": { "anyOf": [ { "required": [ "trigger" ] }, { "required": [ "include_participants" ] } ] } } }, { "if": { "properties": { "task": { "const": "actors" } } }, "then": { "properties": { "text": { "maxLength": 8000 } }, "not": { "anyOf": [ { "required": [ "claim" ] }, { "required": [ "include_participants" ] }, { "required": [ "trigger" ] } ] } } }, { "if": { "properties": { "task": { "const": "events" } } }, "then": { "properties": { "text": { "maxLength": 5000 } }, "not": { "required": [ "claim" ] } } } ] }