-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
45a1339
commit 2750f1a
Showing
1 changed file
with
107 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |