{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/cinnamon-spice-metadata.json",
  "definitions": {
    "string-property-partial": {
      "type": "string",
      "minLength": 1,
      "pattern": "\\S"
    },
    "version-property-partial": {
      "type": "string",
      "minLength": 1,
      "pattern": "^\\d+(\\.\\d+){1,2}$",
      "examples": ["MAJOR.MINOR.PATCH"]
    }
  },
  "title": "extension metadata",
  "description": "Metadata of Cinnamon extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
  "type": "object",
  "required": ["uuid", "name", "description"],
  "properties": {
    "uuid": {
      "title": "uuid",
      "description": "A UUID of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "string",
      "pattern": "^[^@]+@[^@]+$",
      "examples": ["EXTENSION@NICKNAME"]
    },
    "name": {
      "$ref": "#/definitions/string-property-partial",
      "title": "name",
      "description": "A name of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html"
    },
    "description": {
      "$ref": "#/definitions/string-property-partial",
      "title": "description",
      "description": "A description of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html"
    },
    "comments": {
      "$ref": "#/definitions/string-property-partial",
      "title": "comments",
      "description": "Comments of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html"
    },
    "website": {
      "title": "website",
      "description": "A site of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "string",
      "minLength": 1,
      "pattern": "^https://"
    },
    "url": {
      "title": "url",
      "description": "A URL of repository of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "string",
      "minLength": 1,
      "pattern": "^https://"
    },
    "version": {
      "$ref": "#/definitions/version-property-partial",
      "title": "website",
      "description": "A site of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html"
    },
    "shell-version": {
      "title": "shell version",
      "description": "Versions of Cinnamon supported by the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "$ref": "#/definitions/version-property-partial",
        "description": "A versions of Cinnamon supported by the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html"
      }
    },
    "author": {
      "title": "author",
      "description": "An author of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "string",
      "minLength": 1,
      "pattern": "\\S",
      "examples": ["FIRST_NAME LAST_NAME"]
    },
    "contributors": {
      "title": "contributors",
      "description": "Contributors of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "string",
      "minLength": 1,
      "pattern": "\\S",
      "examples": ["FIRST_NAME LAST_NAME - WORK_AREA"]
    },
    "prevent-decorations": {
      "title": "prevent decorations",
      "description": "Whether to prevent decorations of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "boolean"
    },
    "multiversion": {
      "title": "multi version",
      "description": "Whether to allow several versions of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "boolean",
      "const": true
    },
    "max-instances": {
      "title": "maximum instances",
      "description": "A count of maximum instances of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
      "type": "integer",
      "minimum": -1
    }
  },
  "dependencies": {
    "multiversion": ["version"]
  },
  "additionalProperties": false
}
