Skip to content

Commit

Permalink
fix: Make needed properties required
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash258 committed May 16, 2020
1 parent 444d1de commit 20f7706
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .vscode/Cosi.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"path": "../../Shim",
"name": "Supporting/Validator",
"name": "Supporting/Shim",
},
{
"path": "../../GithubActions",
Expand Down
23 changes: 13 additions & 10 deletions schema.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"$id": "http://scoop.sh/draft/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Application manifest schema definition for Scoop Installer.",
"type": "object",
"title": "Application manifest schema definition for Shovel Installer.",
"additionalProperties": false,
"required": [
"version"
"version",
"description",
"homepage",
"license"
],
"definitions": {
"licenseIdentifiers": {
"description": "SPDX license identifier",
"type": "string",
"examples": [
"Freeware",
"Public Domain",
"Proprietary",
"Shareware",
"Unknown",
"Unlicense",
"Apache-2.0",
"BSD-3-Clause",
"Freeware",
"GPL-2.0-only",
"GPL-2.0-or-later",
"GPL-3.0-only",
Expand All @@ -27,12 +35,7 @@
"LGPL-3.0-only",
"LGPL-3.0-or-later",
"MIT",
"MS-PL",
"Proprietary",
"Public Domain",
"Shareware",
"Unknown",
"Unlicense"
"MS-PL"
]
},
"jsonPathExpression": {
Expand All @@ -43,7 +46,7 @@
"hashPattern": {
"description": "Validates all supported format of hash property",
"type": "string",
"pattern": "^([a-fA-F0-9]{64}|(sha1|sha256|sha512|md5):([a-fA-F0-9]{32}|[a-fA-F0-9]{40}|[a-fA-F0-9]{64}|[a-fA-F0-9]{128}))$"
"pattern": "^([a-fA-F\\d]{64}|(sha1|sha256|sha512|md5):([a-fA-F\\d]{32}|[a-fA-F\\d]{40}|[a-fA-F\\d]{64}|[a-fA-F\\d]{128}))$"
},
"hash": {
"description": "File hash used for verification of downloaded file.",
Expand Down

0 comments on commit 20f7706

Please sign in to comment.