Skip to content

Commit a2f1918

Browse files
committed
fix js-ahead-of-spec
1 parent b25ae94 commit a2f1918

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/update-appendix-specified-definitions.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ import {
1414
function stripDescriptions(sdl) {
1515
const ast = parse(sdl);
1616
const noDescAst = visit(ast, {
17+
enter: (node) => {
18+
// Not in spec yet
19+
if (node.name?.value === "FRAGMENT_VARIABLE_DEFINITION") {
20+
return null
21+
}
22+
},
1723
leave: (node) => ({ ...node, description: undefined })
1824
});
1925
return print(noDescAst);

spec/Appendix D -- Specified Definitions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ enum __DirectiveLocation {
103103
FRAGMENT_SPREAD
104104
INLINE_FRAGMENT
105105
VARIABLE_DEFINITION
106-
FRAGMENT_VARIABLE_DEFINITION
107106
SCHEMA
108107
SCALAR
109108
OBJECT

0 commit comments

Comments
 (0)