You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/source/commands/supergraphs.mdx
+20
Original file line number
Diff line number
Diff line change
@@ -229,3 +229,23 @@ We recommend updating to the latest version of Rover as soon as possible. If you
229
229
|---|---|
230
230
|<= v0.2.x|<= v0.38.x|
231
231
|>= v0.3.x|>= v0.39.x|
232
+
233
+
## Configuration awareness in your text editor
234
+
235
+
### `supergraph print-json-schema`
236
+
237
+
You can use Rover to generate a JSON schema for config validation in your text editor. This schema helps you format the YAML file correctly and also provides content assist.
238
+
239
+
Generate the schema with the following command:
240
+
241
+
```bash
242
+
rover supergraph print-json-schema
243
+
```
244
+
245
+
After you generate the schema, configure your text editor. Here are the instructions for some commonly used editors:
246
+
247
+
- [Visual Studio Code](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings)
0 commit comments