sourcegraph/schema
Philipp Spiess 30ee2823ac
Extension graduation: Graduate go imports search (#40611)
Closes #38316

This graduates the go import search extension. The extension currently
has two usages:

1. A query of the form `go.imports:<something>` is transformed to look
   for go import strings of `<something>`.
2. A user config option that, when enabled, shows an "show all usages"
   button next to import statements:  [Screenshot 2022-08-19 at 16 14
   53](https://user-images.githubusercontent.com/458591/185638652-c9ea82e4-f1cf-4d60-8478-84db5854adee.png)

We decided to only migrate 1) since 2) is not enabled by default,
currently broken on Web (won't render at all) and broken on code hosts
(the link it creates is dead).

We plan on tracking usages of this transformation and will very likely
deprecate this later.
2022-08-29 18:30:37 +02: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: Add Mount Model (#36673) 2022-06-07 11:38:21 -06:00
bitbucket_cloud.schema.json batches: Bitbucket Cloud webhook support (#34554) 2022-05-17 08:58:23 -07:00
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 Add ability for Bitbucket clients to use projectKeys (#36904) 2022-06-13 21:00:46 +07: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 all: use any instead of interface{} (#35102) 2022-05-09 10:59:39 +02: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
gerrit.schema.json Gerrit code host (#33951) 2022-04-20 10:51:42 -04: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 schema: add "pending" field to GitHub code host connection (#32433) 2022-03-14 14:13:07 +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 authz: Refresh GitLab OAuth tokens from code host connections (#36042) 2022-05-26 14:07:29 +02:00
gitolite.schema.json Unremoving phabricator integration fields, adding lines to changelog (#32573) 2022-03-15 10:01:39 -04:00
go-modules.schema.json extsvc: Change default rate limits of npm and Go external services (#34042) 2022-04-19 11:50:46 +00: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 npm: Bump rate limit. (#37018) 2022-06-10 15:00:51 +00:00
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: Allow passing the fsyncEnable param to p4-fusion (#33305) 2022-04-01 17:42:50 +02:00
phabricator.schema.json do not show errors for trailing commas in web JSON editors (#4100) 2019-05-16 23:29:12 -07:00
python-packages.schema.json repos: Introduce Python dependency repos integration (#34886) 2022-05-05 13:24:25 +02:00
README.md Update schema/README with info on updating ts schema files (#33270) 2022-04-05 10:20:14 +01:00
rust-packages.schema.json Add syncing strategy for Rust packages that registers crates from a rust-lang/crates.io-index like repository (#37064) 2022-06-24 11:43:10 +00:00
schema.go Extension graduation: Graduate go imports search (#40611) 2022-08-29 18:30:37 +02:00
settings.schema.json Extension graduation: Graduate go imports search (#40611) 2022-08-29 18:30:37 +02:00
site.schema.json insights: add a setting for in-memory aggregation buffer size (#40851) 2022-08-26 15:58:09 +01:00
stringdata.go feat: add rust package repos (#36047) 2022-06-03 10:06:43 -04:00
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. Run sg start to automatically update TypeScript schema files.
  5. 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.