{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": [ "id", "original_id", "source", "scenario", "clean", "adv", "gt", "task", "attack" ], "properties": { "id": { "type": "integer", "minimum": 0 }, "original_id": { "type": "integer", "minimum": 0 }, "source": { "type": "string" }, "scenario": { "type": "string" }, "clean": { "$ref": "#/$defs/input" }, "adv": { "$ref": "#/$defs/input" }, "gt": { "type": [ "string", "boolean", "number" ] }, "attack": { "type": "string" }, "task": { "type": "object", "required": [ "mode", "question_ids" ], "additionalProperties": false, "properties": { "mode": { "enum": [ "choice", "noul", "score" ] }, "question_ids": { "type": "array", "minItems": 1, "items": { "type": "string" } }, "labels": { "type": "array", "minItems": 2 }, "positive_label": { "type": [ "string", "boolean", "number" ] } } } }, "$defs": { "input": { "type": "object", "required": [ "state", "questions" ], "properties": { "questions": { "type": "object", "minProperties": 1 }, "images": { "type": "array", "items": { "type": "string" } } } } } }