Skip to content

Commit

Permalink
Update schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Feb 28, 2017
1 parent fc51dea commit 7a4791a
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 509 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ Temporary Items
.apdisk

archive/
*.failed
175 changes: 69 additions & 106 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,27 @@
"bin": {
"$ref": "#/definitions/stringOrArrayOfStringsOrAnArrayOfArrayOfStrings"
},
"checkver": {
"$ref": "#/definitions/checkver"
},
"extract_dir": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"hash": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
"$ref": "#/definitions/stringOrArrayOfUniqueStrings"
},
"installer": {
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1",
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"pre_install": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
Expand All @@ -42,8 +45,10 @@
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"minItems": 1,
"type": "array"
},
"autoupdate": {
Expand Down Expand Up @@ -82,7 +87,7 @@
"type": "object"
},
"extract_dir": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
"type": "string"
},
"hash": {
"additionalProperties": false,
Expand All @@ -100,14 +105,23 @@
},
"type": {
"enum": [
"md5",
"sha1",
"sha256",
"sha512"
]
},
"url": {
"format": "uri",
"type": "string"
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"pattern": "^\\$url.[\\w\\d]+$",
"type": "string"
}
]
}
},
"type": "object"
Expand Down Expand Up @@ -152,7 +166,7 @@
"additionalProperties": false,
"properties": {
"_comment": {
"description": "Undocumented",
"description": "Undocumented: only used in scoop-extras/oraclejdk* and scoop-extras/appengine-go",
"type": "string"
},
"args": {
Expand All @@ -176,54 +190,42 @@
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
}
]
},
"stringOrArrayOfStringsMin1": {
"stringOrArrayOfStringsOrAnArrayOfArrayOfStrings": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
"type": "array"
}
]
},
"stringOrArrayOfStringsOrAnArrayOfArrayOfStrings": {
"stringOrArrayOfUniqueStrings": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
"type": "string"
},
"type": "array"
"minItems": 1,
"type": "array",
"uniqueItems": true
}
]
},
"uninstaller": {
"properties": {
"_comment": {
"description": "Undocumented",
"type": "string"
},
"args": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
Expand All @@ -240,11 +242,17 @@
"anyOf": [
{
"format": "uri",
"not": {
"pattern": "(\\$)"
},
"type": "string"
},
{
"items": {
"format": "uri",
"not": {
"pattern": "(\\$)"
},
"type": "string"
},
"minItems": 1,
Expand All @@ -256,85 +264,17 @@
},
"properties": {
"_comment": {
"description": "Undocumented",
"description": "Undocumented: only found in scoop/git* and 6 manifests in scoop-extras",
"type": "string"
},
"architecture": {
"additionalProperties": false,
"properties": {
"32bit": {
"additionalProperties": false,
"properties": {
"bin": {
"$ref": "#/definitions/stringOrArrayOfStringsOrAnArrayOfArrayOfStrings"
},
"checkver": {
"$ref": "#/definitions/checkver"
},
"extract_dir": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"hash": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"installer": {
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"pre_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
},
"url": {
"$ref": "#/definitions/uriOrArrayOfUris"
}
},
"type": "object"
"$ref": "#/definitions/architecture"
},
"64bit": {
"additionalProperties": false,
"properties": {
"bin": {
"$ref": "#/definitions/stringOrArrayOfStringsOrAnArrayOfArrayOfStrings"
},
"checkver": {
"$ref": "#/definitions/checkver"
},
"extract_dir": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"hash": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"installer": {
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"pre_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
},
"url": {
"$ref": "#/definitions/uriOrArrayOfUris"
}
},
"type": "object"
"$ref": "#/definitions/architecture"
}
},
"type": "object"
Expand All @@ -349,13 +289,14 @@
"$ref": "#/definitions/checkver"
},
"cookie": {
"description": "Undocumented: only found in https://github.com/lukesampson/scoop-extras/blob/master/oraclejdk*.json",
"description": "Undocumented: only found in scoop-extras/oraclejdk*",
"type": "object"
},
"depends": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"description": {
"description": "Undocumented: only found in scoop/gibo",
"type": "string"
},
"env_add_path": {
Expand All @@ -369,17 +310,17 @@
},
"extract_to": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Undocumented: only found in https://github.com/lukesampson/scoop/blob/master/bucket/ruby*.json"
"description": "Undocumented: only found in scoop/ruby*"
},
"hash": {
"$ref": "#/definitions/stringOrArrayOfStrings"
"$ref": "#/definitions/stringOrArrayOfUniqueStrings"
},
"homepage": {
"format": "uri",
"type": "string"
},
"innosetup": {
"description": "Undocumented: found in 6 manifests in https://github.com/lukesampson/scoop/blob/master/bucket",
"description": "Undocumented: only found in 6 manifests in scoop",
"type": "boolean"
},
"installer": {
Expand All @@ -401,12 +342,30 @@
"pre_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"psmodule": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
}
},
"type": "object"
},
"shortcuts": {
"$ref": "#/definitions/arrayOfArrayOfStrings"
},
"suggest": {
"additionalProperties": false,
"patternProperties": {
"^(.*)$": {
"$ref": "#/definitions/stringOrArrayOfStrings"
}
},
"type": "object"
},
"travel_dirs": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Undocumented: only found in https://github.com/lukesampson/scoop-extras/blob/master/kibana.json"
"description": "Undocumented: only found in scoop-extras/kibana"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
Expand All @@ -415,9 +374,13 @@
"$ref": "#/definitions/uriOrArrayOfUris"
},
"version": {
"pattern": "^[\\w\\.\\-_]+$",
"type": "string"
}
},
"required": [
"version"
],
"title": "scoop app manifest schema",
"type": "object"
}
Loading

0 comments on commit 7a4791a

Please sign in to comment.