{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "htmlStringLines": {
            "description": "HTML string lines, will be joined by \\n.",
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "string"
            }
        },
        "urlString": {
            "type": "string",
            "pattern": "^(ftp|http|https)://[^ \"]+$",
            "_format": "uri"
        },
        "fileLocations": {
            "type": "object",
            "minProperties": 1,
            "properties": {
                "main": {
                    "type": "string"
                },
                "user": {
                    "type": "string"
                }
            },
            "additionalProperties": false
        }
    },
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "previousVersions": {
            "type": "object",
            "minProperties": 1,
            "additionalProperties": {
                "type": "string"
            }
        },
        "description": {
            "$ref": "#/definitions/htmlStringLines"
        },
        "links": {
            "type": "object",
            "minProperties": 1,
            "properties": {
                "Website": {
                    "$ref": "#/definitions/urlString"
                },
                "Fixture library download": {
                    "$ref": "#/definitions/urlString"
                },
                "Fixture format documentation": {
                    "$ref": "#/definitions/urlString"
                }
            },
            "additionalProperties": {
                "$ref": "#/definitions/urlString"
            }
        },
        "fixtureUsage": {
            "$ref": "#/definitions/htmlStringLines"
        },
        "fileLocations": {
            "type": "object",
            "minProperties": 1,
            "properties": {
                "subDirectoriesAllowed": {
                    "type": "boolean"
                },
                "Windows": {
                    "$ref": "#/definitions/fileLocations"
                },
                "Mac OS": {
                    "$ref": "#/definitions/fileLocations"
                },
                "Linux": {
                    "$ref": "#/definitions/fileLocations"
                }
            },
            "additionalProperties": {
                "$ref": "#/definitions/fileLocations"
            }
        },
        "additionalInfo": {
            "$ref": "#/definitions/htmlStringLines"
        },
        "helpWanted": {
            "type": "string"
        }
    },
    "required": [
        "name",
        "description",
        "links"
    ],
    "patternProperties": {
        "^\\$schema$": {
            "const": "../../schemas/plugin.json"
        }
    },
    "additionalProperties": false
}