sourcegraph/schema
Asdine El Hrychy c8c9707465
Fix crash on Gitlab external service configuration (#14519)
OneOf will prevent schemas from being saved and enforce choosing only one of the expected properties
2020-10-09 18:26:52 +04: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 Document token permissions required by campaigns (#13948) 2020-09-18 13:07:13 +02:00
bitbucket_server_utils.go campaigns: Add configuration to control automatic webhook creation (#10904) 2020-05-22 11:07:54 +02:00
bitbucket_server.schema.json Document token permissions required by campaigns (#13948) 2020-09-18 13:07:13 +02:00
campaign_spec_stringdata.go campaigns: allow partial publishing of changesets (#13476) 2020-10-01 11:48:36 -07:00
campaign_spec.schema.json campaigns: allow partial publishing of changesets (#13476) 2020-10-01 11:48:36 -07:00
changeset_spec_stringdata.go campaigns: allow user to set git commit author (#13574) 2020-09-09 11:30:45 -07:00
changeset_spec.schema.json campaigns: allow user to set git commit author (#13574) 2020-09-09 11:30:45 -07: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 schema: move search.streaming to experimental settings (#13766) 2020-09-11 17:08:58 +02:00
github_stringdata.go schema: remove deprecated authz fields (#13395) 2020-08-27 15:38:35 +08:00
github.schema.json schema: remove deprecated authz fields (#13395) 2020-08-27 15:38:35 +08:00
gitlab_stringdata.go Fix crash on Gitlab external service configuration (#14519) 2020-10-09 18:26:52 +04:00
gitlab.schema.json Fix crash on Gitlab external service configuration (#14519) 2020-10-09 18:26:52 +04:00
gitolite_stringdata.go Remove deprecated blacklist option (#12345) 2020-07-21 11:46:07 +02: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
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 G Suite was renamed to Google Workspace (#14447) 2020-10-06 12:19:47 -07:00
settings_stringdata.go search: enable enterprise home panels by default (#14288) 2020-09-30 19:24:47 -07:00
settings.schema.json search: enable enterprise home panels by default (#14288) 2020-09-30 19:24:47 -07:00
site_stringdata.go G Suite was renamed to Google Workspace (#14447) 2020-10-06 12:19:47 -07:00
site.schema.json G Suite was renamed to Google Workspace (#14447) 2020-10-06 12:19:47 -07:00
stringdata.go schema: do not write files if unchanged (#13670) 2020-09-07 14:08:08 +02: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.