Skip to content

Commit

Permalink
backport[v15]: Introduce "recommended" validation rules (#4120)
Browse files Browse the repository at this point in the history
Co-authored-by: enisdenjo <denis@denelop.com>
  • Loading branch information
benjie and enisdenjo authored Jun 21, 2024
1 parent b47e306 commit 12e30ad
Show file tree
Hide file tree
Showing 10 changed files with 675 additions and 2 deletions.
2 changes: 2 additions & 0 deletions integrationTests/ts/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const fs = require('fs');
const path = require('path');
const childProcess = require('child_process');

Expand All @@ -13,5 +14,6 @@ for (const version of tsVersions) {
console.log(`Testing on ${version} ...`);

const tscPath = path.join(__dirname, 'node_modules', version, 'bin/tsc');
fs.chmodSync(tscPath, 0o755);
childProcess.execSync(tscPath, { stdio: 'inherit' });
}
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export {
ValidationContext,
// All validation rules in the GraphQL Specification.
specifiedRules,
recommendedRules,
// Individual validation rules.
ExecutableDefinitionsRule,
FieldsOnCorrectTypeRule,
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export {
ValidationContext,
// All validation rules in the GraphQL Specification.
specifiedRules,
recommendedRules,
// Individual validation rules.
ExecutableDefinitionsRule,
FieldsOnCorrectTypeRule,
Expand Down Expand Up @@ -330,6 +331,7 @@ export {
ValuesOfCorrectTypeRule,
VariablesAreInputTypesRule,
VariablesInAllowedPositionRule,
MaxIntrospectionDepthRule,
// SDL-specific validation rules
LoneSchemaDefinitionRule,
UniqueOperationTypesRule,
Expand Down
Loading

0 comments on commit 12e30ad

Please sign in to comment.