sourcegraph/schema/ruby-packages.schema.json

49 lines
1.8 KiB
JSON
Raw Permalink Normal View History

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "ruby-packages.schema.json#",
"title": "RubyPackagesConnection",
"description": "Configuration for a connection to Ruby packages",
"allowComments": true,
"type": "object",
"additionalProperties": false,
"properties": {
"repository": {
"description": "The URL at which the maven repository can be found.",
"type": "string",
"default": ["https://rubygems.org/"],
"examples": ["https://rubygems.org/", "https://<server name>.jfrog.io/artifactory/api/gems/<repository key>"]
},
"rateLimit": {
"description": "Rate limit applied when making background API requests to the configured Ruby repository APIs.",
"title": "RubyRateLimit",
"type": "object",
"required": ["enabled", "requestsPerHour"],
"properties": {
"enabled": {
"description": "true if rate limiting is enabled.",
"type": "boolean",
"default": true
},
"requestsPerHour": {
"description": "Requests per hour permitted. This is an average, calculated per second. Internally, the burst limit is set to 100, which implies that for a requests per hour limit as low as 1, users will continue to be able to send a maximum of 100 requests immediately, provided that the complexity cost of each request is 1.",
"type": "number",
"default": 8,
"minimum": 0
}
},
"default": {
"enabled": true,
"requestsPerHour": 3600
}
},
"dependencies": {
"description": "An array of strings specifying Ruby packages to mirror in Sourcegraph.",
"type": "array",
"items": {
"type": "string"
},
"examples": [["shopify_api@12.0.0"]]
}
}
}