Skip to content

Instantly share code, notes, and snippets.

@nixel2007
Last active August 12, 2019 15:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nixel2007/18b4e86ef1d98fb60b901ca4fcecb0e9 to your computer and use it in GitHub Desktop.
Save nixel2007/18b4e86ef1d98fb60b901ca4fcecb0e9 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