{
    "$schema": "https://json-schema.org/draft-04/schema#",
    "title": "Packagist malware feed",
    "description": "A list of package versions reported as malware, as a third-party provider can expose it for Packagist to ingest.",
    "type": "array",
    "items": {
        "type": "object",
        "required": ["package_name", "version"],
        "properties": {
            "package_name": {
                "type": "string",
                "description": "Package name, including the 'vendor-name/' prefix. It is matched case-insensitively.",
                "pattern": "^[a-zA-Z0-9]([_.-]?[a-zA-Z0-9]+)*/[a-zA-Z0-9](([_.]|-{1,2})?[a-zA-Z0-9]+)*$"
            },
            "version": {
                "type": "string",
                "description": "Composer version constraint matching the affected versions, e.g. '1.2.3' or '>=1.0,<1.4'.",
                "minLength": 1
            },
            "reason": {
                "type": "string",
                "description": "Why the versions are reported, shown to users as plain text.",
                "maxLength": 16383
            },
            "url": {
                "type": "string",
                "description": "Link to the report with more details.",
                "format": "uri"
            }
        }
    }
}
