{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/metadata-for-a-cinnamon-spice/latest.json",
  "title": "extension metadata",
  "description": "Metadata of Cinnamon extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>",
  "x-lintel": {
    "source": "https://www.schemastore.org/cinnamon-spice-metadata.json",
    "sourceSha256": "3296ced4650fcfbf57c5258380261930a2d325c9ecd0c865f5653333e72e1e3b",
    "fileMatch": [
      "**/*@*/**/metadata.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "uuid": {
      "title": "uuid",
      "description": "A UUID of the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>",
      "type": "string",
      "pattern": "^[^@]+@[^@]+$",
      "examples": [
        "EXTENSION@NICKNAME"
      ]
    },
    "name": {
      "$ref": "#/$defs/string-property-partial",
      "title": "name",
      "description": "A name of the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>"
    },
    "description": {
      "$ref": "#/$defs/string-property-partial",
      "title": "description",
      "description": "A description of the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>"
    },
    "comments": {
      "$ref": "#/$defs/string-property-partial",
      "title": "comments",
      "description": "Comments of the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>"
    },
    "website": {
      "title": "website",
      "description": "A site of the extension\n<https://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\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>",
      "type": "string",
      "minLength": 1,
      "pattern": "^https://"
    },
    "version": {
      "$ref": "#/$defs/version-property-partial",
      "title": "website",
      "description": "A site of the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>"
    },
    "shell-version": {
      "title": "shell version",
      "description": "Versions of Cinnamon supported by the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>",
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/version-property-partial",
        "description": "A versions of Cinnamon supported by the extension\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>"
      }
    },
    "author": {
      "title": "author",
      "description": "An author of the extension\n<https://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\n<https://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\n<https://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\n<https://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\n<https://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html>",
      "type": "integer",
      "minimum": -1
    }
  },
  "required": [
    "uuid",
    "name",
    "description"
  ],
  "additionalProperties": false,
  "dependentRequired": {
    "multiversion": [
      "version"
    ]
  },
  "$defs": {
    "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"
      ]
    }
  }
}
