{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
        "author": {
            "type": "string"
        },
        "category": {
            "type": "string"
        },
        "cost": {
            "minimum": 0,
            "type": "integer"
        },
        "desc_en": {
            "pattern": "^.*\\.md$",
            "type": "string"
        },
        "desc_ru": {
            "pattern": "^.*\\.md$",
            "type": "string"
        },
        "flag": {
            "type": "string"
        },
        "flag_comp": {
            "type": "string"
        },
        "images": {
            "items": {
                "properties": {
                    "filename": {
                        "pattern": "^.*\\.tar$",
                        "type": "string"
                    },
                    "tcp_ports": {
                        "items": {
                            "minimum": 0,
                            "type": "integer"
                        },
                        "minItems": 1,
                        "type": "array",
                        "_uniqueItems": true
                    },
                    "udp_ports": {
                        "items": {
                            "minimum": 0,
                            "type": "integer"
                        },
                        "minItems": 1,
                        "type": "array",
                        "_uniqueItems": true
                    }
                },
                "required": [
                    "filename"
                ],
                "type": "object"
            },
            "minItems": 1,
            "type": "array",
            "_uniqueItems": true
        },
        "schema_version": {
            "pattern": "^0\\.2$",
            "type": "string"
        },
        "title_en": {
            "type": "string"
        },
        "title_ru": {
            "type": "string"
        },
        "upload_timestamp": {
            "type": "integer"
        },
        "writeup_en": {
            "pattern": "^.*\\.md$",
            "type": "string"
        },
        "writeup_ru": {
            "pattern": "^.*\\.md$",
            "type": "string"
        }
    },
    "required": [
        "schema_version",
        "title_ru",
        "title_en",
        "category",
        "cost",
        "desc_ru",
        "desc_en",
        "writeup_ru",
        "writeup_en",
        "flag",
        "flag_comp"
    ],
    "title": "BlackBox 3.0 task meta-info v0.2",
    "type": "object"
}