Commit cb886dc
Fix SchemaTransformerBenchmark to pass schema validation
The benchmark's `infoDirective` lacked valid locations, causing schema
validation failures during `transformSchema`. Additionally, the directive
was not declared on the schema, so the post-transformation validation
would reject it. This meant the benchmark was measuring error-path
behavior rather than the real transformation cost.
- Add FIELD_DEFINITION and OBJECT valid locations to `infoDirective`
- Declare `infoDirective` as an additional directive on the schema
- Import `DirectiveLocation`
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9ae83ab commit cb886dc
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
0 commit comments