Skip to content

Instantly share code, notes, and snippets.

@artbear
Forked from nixel2007/global.json
Created August 12, 2019 15:00
Show Gist options
  • Save artbear/03f1c8bf94a62ead57ab9bfe253a0db5 to your computer and use it in GitHub Desktop.
Save artbear/03f1c8bf94a62ead57ab9bfe253a0db5 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"servers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique ID of SonarQube connection",
"uniqueItems": true
},
"url": {
"type": "string",
"format": "uri",
"description": "SonarQube Server URL"
},
"token": {
"type": "string",
"description": "Auth token. Can be generated at http://your-server.com/account/security"
},
"organizationKey": {
"type": "string",
"description": "Key of organization, if Organization mode is enabled on your SonarQube server"
},
"login": {
"type": "string",
"description": "Login"
},
"password": {
"type": "string",
"description": "Password"
}
},
"oneOf": [
{
"required": [
"id",
"url",
"token"
]
},
{
"required": [
"id",
"url",
"login",
"password"
]
}
]
}
]
}
}
},
"required": [
"servers"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment