Skip to content

Commit 940c3f7

Browse files
Add documentation
1 parent 45950a6 commit 940c3f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/source/commands/supergraphs.mdx

+13
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,16 @@ We recommend updating to the latest version of Rover as soon as possible. If you
229229
|---|---|
230230
|<= v0.2.x|<= v0.38.x|
231231
|>= v0.3.x|>= v0.39.x|
232+
233+
## Printing the JSON Schema for use with Editor Validation
234+
235+
### `supergraph print-json-schema`
236+
237+
You can use Rover to print the JSON Schema for the `supergraph.yaml` file to the console or to a file, like so
238+
239+
```bash
240+
rover supergraph print-json-schema
241+
```
242+
243+
This can then be consumed by an IDE to allow for automatic checking of the structure of the `supergraph.yaml` file. For
244+
example, you can use in VSCode by following the instructions [here](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings)

0 commit comments

Comments
 (0)