Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 7, 2024
1 parent 45a1339 commit 2750f1a
Showing 1 changed file with 107 additions and 117 deletions.
224 changes: 107 additions & 117 deletions src/schemas/json/cinnamon-spice-metadata.json
Original file line number Diff line number Diff line change
@@ -1,122 +1,112 @@
{
"$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"
]
}
"$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"
},
"$schema": "http://json-schema.org/draft-07/schema#",
"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": {
"title": "name",
"description": "A name of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
"$ref": "#/definitions/string-property-partial"
},
"description": {
"title": "description",
"description": "A description of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
"$ref": "#/definitions/string-property-partial"
},
"comments": {
"title": "comments",
"description": "Comments of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
"$ref": "#/definitions/string-property-partial"
},
"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": {
"title": "website",
"description": "A site of the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
"$ref": "#/definitions/version-property-partial"
},
"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": {
"description": "A versions of Cinnamon supported by the extension\nhttps://projects.linuxmint.com/reference/git/cinnamon-tutorials/write-applet.html",
"$ref": "#/definitions/version-property-partial"
}
},
"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
}
"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"]
},
"dependencies": {
"multiversion": [
"version"
]
"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"
},
"additionalProperties": false
"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
}

0 comments on commit 2750f1a

Please sign in to comment.