Commit 94f73f4
Allow deprecation of input values (field args, directive args, input fields) (graphql#805)
Adds the ability to deprecate arguments, directive arguments, and input fields on input types.
Exposes these deprecations via the introspection system with the same mechanism as found in existing field deprecations.
Adds a schema validation rule for @deprecated on required arguments - The `@deprecated` directive must not appear on required (non-null without a default) arguments or input object field definitions. Deprecated arguments and fields are excluded by default in introspection, and deprecating required arguments or input fields could create confusion for clients.
Co-authored-by: Kevin Smithson <smitt04@gmail.com>
Co-authored-by: Lee Byron <lee@leebyron.com>
Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
Co-authored-by: Stephen Spalding <fotoetienne@users.noreply.github.com>1 parent 6b69577 commit 94f73f4
File tree
2 files changed
+47
-9
lines changed- spec
2 files changed
+47
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
| 882 | + | |
| 883 | + | |
882 | 884 | | |
883 | 885 | | |
884 | 886 | | |
| |||
1652 | 1654 | | |
1653 | 1655 | | |
1654 | 1656 | | |
| 1657 | + | |
| 1658 | + | |
1655 | 1659 | | |
1656 | 1660 | | |
1657 | 1661 | | |
| |||
2047 | 2051 | | |
2048 | 2052 | | |
2049 | 2053 | | |
2050 | | - | |
| 2054 | + | |
2051 | 2055 | | |
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
2055 | | - | |
| 2059 | + | |
| 2060 | + | |
2056 | 2061 | | |
2057 | 2062 | | |
2058 | 2063 | | |
2059 | 2064 | | |
2060 | 2065 | | |
2061 | | - | |
| 2066 | + | |
2062 | 2067 | | |
2063 | 2068 | | |
2064 | 2069 | | |
2065 | 2070 | | |
2066 | 2071 | | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
2067 | 2089 | | |
2068 | 2090 | | |
2069 | 2091 | | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
2070 | 2095 | | |
2071 | 2096 | | |
2072 | 2097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
193 | | - | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
| |||
367 | 370 | | |
368 | 371 | | |
369 | 372 | | |
| 373 | + | |
| 374 | + | |
370 | 375 | | |
371 | 376 | | |
372 | 377 | | |
| |||
412 | 417 | | |
413 | 418 | | |
414 | 419 | | |
| 420 | + | |
| 421 | + | |
415 | 422 | | |
416 | 423 | | |
417 | 424 | | |
| |||
432 | 439 | | |
433 | 440 | | |
434 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
435 | 446 | | |
436 | 447 | | |
437 | 448 | | |
| |||
483 | 494 | | |
484 | 495 | | |
485 | 496 | | |
| 497 | + | |
| 498 | + | |
486 | 499 | | |
487 | 500 | | |
0 commit comments