sourcegraph/schema
2020-05-15 09:30:36 +02: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 bitbucket: Switch to rate limit registry (#9687) 2020-04-09 12:01:19 +02:00
bitbucket_cloud.schema.json bitbucket: Switch to rate limit registry (#9687) 2020-04-09 12:01:19 +02:00
bitbucket_server_stringdata.go repo-updater: Add rate limit registry. (#9653) 2020-04-09 09:50:09 +02:00
bitbucket_server_utils.go bitbucketserver: clean up plugin configuration (#8396) 2020-02-20 09:16:16 -05:00
bitbucket_server.schema.json repo-updater: Add rate limit registry. (#9653) 2020-04-09 09:50:09 +02: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 Display webhook URL on external services page (#10634) 2020-05-14 14:38:23 +02:00
github.schema.json Display webhook URL on external services page (#10634) 2020-05-14 14:38:23 +02:00
gitlab_stringdata.go extsvc: relax GitLab repo exclude validation (#10097) 2020-04-21 15:36:26 -07:00
gitlab.schema.json extsvc: relax GitLab repo exclude validation (#10097) 2020-04-21 15:36:26 -07: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 schema: remove email.imap (#10705) 2020-05-15 09:30:36 +02:00
settings_stringdata.go Add copy query button (#10168) 2020-05-15 02:45:47 +08:00
settings.schema.json Add copy query button (#10168) 2020-05-15 02:45:47 +08:00
site_stringdata.go schema: remove email.imap (#10705) 2020-05-15 09:30:36 +02:00
site.schema.json schema: remove email.imap (#10705) 2020-05-15 09:30:36 +02: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.