sourcegraph/schema
Beyang Liu 4b734b855d
Batch-fetch GitLab Project visibility when computing permissions (#8171)
* authz: gitlab oauth: batch requests for project visibility
* authz: gitlab oauth: add config for min batch threshold and max allowed batch requests
* conf: debug.log.extsvc.gitlab: logs GitLab API requests
2020-02-02 07:48:33 -08:00
..
critical Remove the management console (#7197) 2019-12-16 21:30:51 -07:00
aws_codecommit_stringdata.go do not show errors for trailing commas in web JSON editors (#4100) 2019-05-16 23:29:12 -07:00
aws_codecommit.schema.json do not show errors for trailing commas in web JSON editors (#4100) 2019-05-16 23:29:12 -07:00
bitbucket_cloud_stringdata.go bitbucketcloud: add apiURL option (#8082) 2020-01-28 19:37:56 +08:00
bitbucket_cloud.schema.json bitbucketcloud: add apiURL option (#8082) 2020-01-28 19:37:56 +08:00
bitbucket_server_stringdata.go schema: Fix typo on webhooks field description (#7751) 2020-01-15 11:18:50 +01:00
bitbucket_server.schema.json schema: Fix typo on webhooks field description (#7751) 2020-01-15 11:18:50 +01:00
critical_stringdata.go Link to JSON escaping tool for fields with multiline values, fix #4695 2019-12-04 15:53:21 -08:00
extension_schema.go improve extension registry list UI (#1613) 2019-01-03 21:04:40 -08:00
gen.go a8n: support creating campaign plans from API only, not UI (#8008) 2020-01-25 21:56:47 -08:00
github_stringdata.go doc: update description for gitlab and github authz ttl (#8037) 2020-01-27 09:58:53 -08:00
github.schema.json doc: update description for gitlab and github authz ttl (#8037) 2020-01-27 09:58:53 -08:00
gitlab_stringdata.go Batch-fetch GitLab Project visibility when computing permissions (#8171) 2020-02-02 07:48:33 -08:00
gitlab.schema.json Batch-fetch GitLab Project visibility when computing permissions (#8171) 2020-02-02 07:48:33 -08:00
gitolite_stringdata.go schema: Remove exclude.pattern from gitolite 2019-05-17 15:13:55 +02:00
gitolite.schema.json schema: Remove exclude.pattern from gitolite 2019-05-17 15:13:55 +02:00
json-schema-draft-07.schema.json use existing spec file 2018-10-28 13:24:42 -07:00
other_external_service_stringdata.go src-expose: Enable src-expose via special repo name (#5911) 2019-10-08 20:18:35 +02:00
other_external_service.schema.json src-expose: Enable src-expose via special repo name (#5911) 2019-10-08 20:18:35 +02:00
phabricator_stringdata.go do not show errors for trailing commas in web JSON editors (#4100) 2019-05-16 23:29:12 -07:00
phabricator.schema.json do not show errors for trailing commas in web JSON editors (#4100) 2019-05-16 23:29:12 -07:00
README.md Configuration refactoring + management console (#966) 2018-12-12 14:59:15 -08:00
schema.go Batch-fetch GitLab Project visibility when computing permissions (#8171) 2020-02-02 07:48:33 -08:00
settings_stringdata.go feat: add hideSuggestions setting (#8059) 2020-01-27 18:22:03 +08:00
settings.schema.json feat: add hideSuggestions setting (#8059) 2020-01-27 18:22:03 +08:00
site_stringdata.go Batch-fetch GitLab Project visibility when computing permissions (#8171) 2020-02-02 07:48:33 -08:00
site.schema.json Batch-fetch GitLab Project visibility when computing permissions (#8171) 2020-02-02 07:48:33 -08:00
stringdata.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
tsconfig.json a8n: support creating campaign plans from API only, not UI (#8008) 2020-01-25 21:56:47 -08:00

Sourcegraph JSON Schemas

JSON Schema is a way to define the structure of a JSON document. It enables typechecking and code intelligence on JSON documents.

Sourcegraph uses the following JSON Schemas:

Modifying a schema

  1. Edit the *.schema.json file in this directory.
  2. Run go generate to update the *_stringdata.json file.
  3. Commit the changes to both files.
  4. When the change is ready for release, update the documentation.

Known issues

  • The JSON Schema IDs (URIs) are of the form https://sourcegraph.com/v1/*.schema.json#, but these are not actually valid URLs. This means you generally need to supply them to JSON Schema validation libraries manually instead of having the validator fetch the schema from the web.