sourcegraph/schema
2022-03-05 02:44:25 +00: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
batch_spec.schema.json batches: support multiple target branches (#28168) 2021-12-07 18:22:35 -08:00
bitbucket_cloud.schema.json Add docs to explain burst settings for ratelimiter config 2021-04-12 16:19:04 +05:30
bitbucket_server_util.go authz/github: validate provider against default github URL if not set (#24598) 2021-09-06 12:37:33 -04:00
bitbucket_server.schema.json docs: Add support for Bitbucket Data Center (#30610) 2022-02-03 11:42:39 +00:00
changeset_spec.schema.json Be more lenient about permissible batch spec structure (#25889) 2021-10-11 15:53:05 +02:00
extension_schema.go improve extension registry list UI (#1613) 2019-01-03 21:04:40 -08:00
gen.go schema: cleanup schema gen (#12394) 2020-07-23 09:13:47 +02:00
gen.sh Be more lenient about permissible batch spec structure (#25889) 2021-10-11 15:53:05 +02:00
github_util.go authz/github: validate provider against default github URL if not set (#24598) 2021-09-06 12:37:33 -04:00
github.schema.json [CLOUD-203] Handle GitHub App setup callback (#29467) 2022-01-13 12:07:23 +08:00
gitlab_util.go authz/github: validate provider against default github URL if not set (#24598) 2021-09-06 12:37:33 -04:00
gitlab.schema.json Note depreciation of initialRepositoryEnablement for GitLab (#21029) 2021-05-17 11:58:32 -07:00
gitolite.schema.json Remove deprecated blacklist option (#12345) 2020-07-21 11:46:07 +02:00
json-schema-draft-07.schema.json use existing spec file 2018-10-28 13:24:42 -07:00
jvm-packages.schema.json Second attempt to PR "Add new "JVM Packages" external services type. (#21703)" (#22923) 2021-07-19 13:46:01 +02:00
npm-packages.schema.json Add support for NPM credentials. (#30232) 2022-02-01 15:42:15 +05:30
other_external_service.schema.json src-expose: Enable src-expose via special repo name (#5911) 2019-10-08 20:18:35 +02:00
pagure.schema.json repos: add Pagure code host support (#28084) 2021-11-23 18:03:35 +01:00
perforce.schema.json perforce: Improve p4-fusion config (#27943) 2021-11-23 09:44:17 +01: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 fix: update broken links to extension schema (#17534) 2021-01-22 12:16:58 -05:00
schema.go codeintel: Add setting codeIntelligence.clickToGoToDefinition (#32236) 2022-03-05 02:44:25 +00:00
settings.schema.json codeintel: Add setting codeIntelligence.clickToGoToDefinition (#32236) 2022-03-05 02:44:25 +00:00
site.schema.json Add Datadog tracing library (#31939) 2022-02-28 11:18:56 -07:00
stringdata.go Add new "NPM Packages" external service type. 2021-12-14 17:52:10 +05:30
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +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.