sourcegraph/schema
Alex Russell-Saw 527503fead
Add graphql mutation to set repos on code hosts (#16841)
* add graphql mutation to set repos on code hosts

* add tests

* remove debugging log

* address feedback in pr #16841

* run go generate

* set a response body on mocked http roundtripper for repo updater
2021-01-04 11:08:08 +00: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 Add transformChanges to campaign spec and document it (#16235) 2020-12-11 10:26:42 +01:00
campaign_spec.schema.json Add transformChanges to campaign spec and document it (#16235) 2020-12-11 10:26:42 +01:00
changeset_spec_stringdata.go Ensure ref prefix set for external_branch (#15601) 2020-11-11 13:28:45 +01:00
changeset_spec.schema.json Ensure ref prefix set for external_branch (#15601) 2020-11-11 13:28:45 +01: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 cloud: Explicitly set global external service (#15748) 2020-11-13 16:09:06 +02:00
github.schema.json cloud: Explicitly set global external service (#15748) 2020-11-13 16:09:06 +02:00
gitlab_stringdata.go cloud: Explicitly set global external service (#15748) 2020-11-13 16:09:06 +02:00
gitlab.schema.json cloud: Explicitly set global external service (#15748) 2020-11-13 16:09:06 +02: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
repo_setter.go Add graphql mutation to set repos on code hosts (#16841) 2021-01-04 11:08:08 +00:00
schema.go Code monitoring: hide send test email button behind feature flag (#16922) 2020-12-18 09:47:52 -08:00
settings_stringdata.go Code monitoring: hide send test email button behind feature flag (#16922) 2020-12-18 09:47:52 -08:00
settings.schema.json Code monitoring: hide send test email button behind feature flag (#16922) 2020-12-18 09:47:52 -08:00
site_stringdata.go repo-updater: Allow custom git update interval (#16765) 2020-12-15 16:43:03 +02:00
site.schema.json repo-updater: Allow custom git update interval (#16765) 2020-12-15 16:43:03 +02: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.