vscode-apollo 2.3.5 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ jobs:
12
12
  matrix:
13
13
  version: ["1.90.0", "stable", "insiders"]
14
14
  steps:
15
- - run: sudo apt update && sudo apt install -y libasound2t64 libgbm1 libgtk-3-0 libnss3 xvfb expect
15
+ - run: sudo apt update && sudo apt install -y libasound2 libgbm1 libgtk-3-0 libnss3 xvfb expect
16
16
  - uses: actions/checkout@v4
17
17
  - uses: actions/setup-node@v4
18
18
  with:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#216](https://github.com/apollographql/vscode-graphql/pull/216) [`1add31e0`](https://github.com/apollographql/vscode-graphql/commit/1add31e0e9bc2da92ea7c3a1c65206cc5d95bb68) Thanks [@phryneas](https://github.com/phryneas)! - Add JSON schema for `supergraph.yaml`.
8
+
3
9
  ## 2.3.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vscode-apollo",
3
3
  "displayName": "Apollo GraphQL",
4
4
  "description": "Rich editor support for GraphQL client and server development that seamlessly integrates with the Apollo platform",
5
- "version": "2.3.5",
5
+ "version": "2.3.6",
6
6
  "referenceID": "87197759-7617-40d0-b32e-46d378e907c7",
7
7
  "author": "Apollo GraphQL <opensource@apollographql.com>",
8
8
  "license": "MIT",
@@ -258,6 +258,10 @@
258
258
  {
259
259
  "fileMatch": "apollo.config.yaml",
260
260
  "url": "./schemas/apollo.config.schema.json"
261
+ },
262
+ {
263
+ "fileMatch": "supergraph.yaml",
264
+ "url": "./schemas/supergraph_config_schema.json"
261
265
  }
262
266
  ],
263
267
  "commands": [
@@ -0,0 +1,119 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "SupergraphConfig",
4
+ "description": "The configuration for a single supergraph composed of multiple subgraphs.",
5
+ "type": "object",
6
+ "required": [
7
+ "subgraphs"
8
+ ],
9
+ "properties": {
10
+ "federation_version": {
11
+ "anyOf": [
12
+ {
13
+ "$ref": "#/definitions/FederationVersion"
14
+ },
15
+ {
16
+ "type": "null"
17
+ }
18
+ ]
19
+ },
20
+ "subgraphs": {
21
+ "type": "object",
22
+ "additionalProperties": {
23
+ "$ref": "#/definitions/SubgraphConfig"
24
+ }
25
+ }
26
+ },
27
+ "definitions": {
28
+ "FederationVersion": {
29
+ "pattern": "^(1|2|=2\\.\\d+\\.\\d+.*)$"
30
+ },
31
+ "SchemaSource": {
32
+ "description": "Options for getting SDL: the graph registry, a file, or an introspection URL.\n\nNOTE: Introspection strips all comments and directives from the SDL.",
33
+ "anyOf": [
34
+ {
35
+ "type": "object",
36
+ "required": [
37
+ "file"
38
+ ],
39
+ "properties": {
40
+ "file": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "type": "object",
47
+ "required": [
48
+ "subgraph_url"
49
+ ],
50
+ "properties": {
51
+ "introspection_headers": {
52
+ "type": [
53
+ "object",
54
+ "null"
55
+ ],
56
+ "additionalProperties": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "subgraph_url": {
61
+ "type": "string",
62
+ "format": "uri"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "type": "object",
68
+ "required": [
69
+ "graphref",
70
+ "subgraph"
71
+ ],
72
+ "properties": {
73
+ "graphref": {
74
+ "type": "string"
75
+ },
76
+ "subgraph": {
77
+ "type": "string"
78
+ }
79
+ }
80
+ },
81
+ {
82
+ "type": "object",
83
+ "required": [
84
+ "sdl"
85
+ ],
86
+ "properties": {
87
+ "sdl": {
88
+ "type": "string"
89
+ }
90
+ }
91
+ }
92
+ ]
93
+ },
94
+ "SubgraphConfig": {
95
+ "description": "Config for a single [subgraph](https://www.apollographql.com/docs/federation/subgraphs/)",
96
+ "type": "object",
97
+ "required": [
98
+ "schema"
99
+ ],
100
+ "properties": {
101
+ "routing_url": {
102
+ "description": "The routing URL for the subgraph. This will appear in supergraph SDL and instructs the graph router to send all requests for this subgraph to this URL.",
103
+ "type": [
104
+ "string",
105
+ "null"
106
+ ]
107
+ },
108
+ "schema": {
109
+ "description": "The location of the subgraph's SDL",
110
+ "allOf": [
111
+ {
112
+ "$ref": "#/definitions/SchemaSource"
113
+ }
114
+ ]
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }