Skip to content

Commit

Permalink
Add documentation to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Smith II committed Jan 12, 2017
1 parent c0f8e98 commit c5ba44e
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$id": "http://scoop.sh/draft/schema#",
"$schema": "http://scoop.sh/draft/schema#",
"additionalProperties": false,
"definitions": {
"architecture": {
"additionalProperties": false,
Expand All @@ -18,7 +19,8 @@
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
"$ref": "#/definitions/stringOrArrayOfStringsMin1",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStringsMin1"
Expand Down Expand Up @@ -86,13 +88,22 @@
"additionalProperties": false,
"properties": {
"find": {
"format": "regex",
"type": "string"
},
"mode": {
"type": "string"
"enum": [
"download",
"extract",
"rdf"
]
},
"type": {
"type": "string"
"enum": [
"sha1",
"sha256",
"sha512"
]
},
"url": {
"format": "uri",
Expand All @@ -114,6 +125,7 @@
"checkver": {
"anyOf": [
{
"format": "regex",
"type": "string"
},
{
Expand All @@ -140,6 +152,7 @@
"additionalProperties": false,
"properties": {
"_comment": {
"description": "Undocumented",
"type": "string"
},
"args": {
Expand Down Expand Up @@ -208,6 +221,7 @@
"uninstaller": {
"properties": {
"_comment": {
"description": "Undocumented",
"type": "string"
},
"args": {
Expand All @@ -217,6 +231,9 @@
"type": "string"
}
},
"required": [
"file"
],
"type": "object"
},
"uriOrArrayOfUris": {
Expand All @@ -237,9 +254,9 @@
]
}
},
"additionalProperties": false,
"properties": {
"_comment": {
"description": "Undocumented",
"type": "string"
},
"architecture": {
Expand All @@ -264,7 +281,8 @@
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings"
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
Expand Down Expand Up @@ -300,7 +318,8 @@
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings"
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
Expand Down Expand Up @@ -330,6 +349,7 @@
"$ref": "#/definitions/checkver"
},
"cookie": {
"description": "Undocumented: only found in https://github.com/lukesampson/scoop-extras/blob/master/oraclejdk*.json",
"type": "object"
},
"depends": {
Expand All @@ -348,15 +368,18 @@
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"extract_to": {
"$ref": "#/definitions/stringOrArrayOfStrings"
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Undocumented: only found in https://github.com/lukesampson/scoop/blob/master/bucket/ruby*.json"
},
"hash": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"homepage": {
"format": "uri",
"type": "string"
},
"innosetup": {
"description": "Undocumented: found in 6 manifests in https://github.com/lukesampson/scoop/blob/master/bucket",
"type": "boolean"
},
"installer": {
Expand All @@ -366,7 +389,8 @@
"type": "string"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings"
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"notes": {
"$ref": "#/definitions/stringOrArrayOfStrings"
Expand All @@ -381,7 +405,8 @@
"$ref": "#/definitions/arrayOfArrayOfStrings"
},
"travel_dirs": {
"$ref": "#/definitions/stringOrArrayOfStrings"
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Undocumented: only found in https://github.com/lukesampson/scoop-extras/blob/master/kibana.json"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
Expand Down

0 comments on commit c5ba44e

Please sign in to comment.