Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Commit

Permalink
feat: support repository field (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismwendt committed Sep 24, 2018
1 parent 7f1d38c commit 7cdb591
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/schema/extension.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"type": "string",
"format": "uri"
},
"repository": {
"$ref": "#/definitions/ExtensionRepository"
},
"activationEvents": {
"description": "A list of events that cause this extension to be activated. '*' means that it will always be activated.",
"type": "array",
Expand Down Expand Up @@ -67,6 +70,23 @@
},
{ "$ref": "./contribution.schema.json" }
]
},
"ExtensionRepository": {
"description": "The location of the version control repository for this extension.",
"type": "object",
"additionalProperties": false,
"required": ["url"],
"properties": {
"type": {
"description": "The version control system (e.g. git).",
"type": "string"
},
"url": {
"description": "A URL to the source code for this extension.",
"type": "string",
"format": "uri"
}
}
}
}
}
4 changes: 4 additions & 0 deletions src/schema/extension.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export interface ExtensionManifest {
description?: string
readme?: string
url: string
repository?: {
type?: string
url: string
}
activationEvents: string[]
args?: {
[k: string]: any
Expand Down

0 comments on commit 7cdb591

Please sign in to comment.