Sha256: 8b72bc439563473642ab78fc1c8d5f45bc9d23d3374dbbc56cd9f7032be33c50

Contents?: true

Size: 1.79 KB

Versions: 23

Compression:

Stored size: 1.79 KB

Contents

# frozen_string_literal: true
module GraphQL
  module StaticValidation
    # Default rules for {GraphQL::StaticValidation::Validator}
    #
    # Order is important here. Some validators return {GraphQL::Language::Visitor::SKIP}
    # which stops the visit on that node. That way it doesn't try to find fields on types that
    # don't exist, etc.
    ALL_RULES = [
      GraphQL::StaticValidation::NoDefinitionsArePresent,
      GraphQL::StaticValidation::DirectivesAreDefined,
      GraphQL::StaticValidation::DirectivesAreInValidLocations,
      GraphQL::StaticValidation::UniqueDirectivesPerLocation,
      GraphQL::StaticValidation::FragmentsAreFinite,
      GraphQL::StaticValidation::FragmentsAreNamed,
      GraphQL::StaticValidation::FragmentNamesAreUnique,
      GraphQL::StaticValidation::FragmentsAreUsed,
      GraphQL::StaticValidation::FragmentTypesExist,
      GraphQL::StaticValidation::FragmentsAreOnCompositeTypes,
      GraphQL::StaticValidation::FragmentSpreadsArePossible,
      GraphQL::StaticValidation::FieldsAreDefinedOnType,
      GraphQL::StaticValidation::FieldsWillMerge,
      GraphQL::StaticValidation::FieldsHaveAppropriateSelections,
      GraphQL::StaticValidation::ArgumentsAreDefined,
      GraphQL::StaticValidation::ArgumentLiteralsAreCompatible,
      GraphQL::StaticValidation::RequiredArgumentsArePresent,
      GraphQL::StaticValidation::VariableNamesAreUnique,
      GraphQL::StaticValidation::VariablesAreInputTypes,
      GraphQL::StaticValidation::VariableDefaultValuesAreCorrectlyTyped,
      GraphQL::StaticValidation::VariablesAreUsedAndDefined,
      GraphQL::StaticValidation::VariableUsagesAreAllowed,
      GraphQL::StaticValidation::MutationRootExists,
      GraphQL::StaticValidation::SubscriptionRootExists,
      GraphQL::StaticValidation::OperationNamesAreValid,
    ]
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
graphql-1.8.1 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre11 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre10 lib/graphql/static_validation/all_rules.rb
graphql-1.7.14 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre9 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre8 lib/graphql/static_validation/all_rules.rb
graphql-1.7.13 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre7 lib/graphql/static_validation/all_rules.rb
graphql-1.7.12 lib/graphql/static_validation/all_rules.rb
graphql-1.7.11 lib/graphql/static_validation/all_rules.rb
graphql-1.7.10 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre6 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre5 lib/graphql/static_validation/all_rules.rb
graphql-1.7.9 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre4 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre3 lib/graphql/static_validation/all_rules.rb
graphql-1.7.8 lib/graphql/static_validation/all_rules.rb
graphql-1.8.0.pre2 lib/graphql/static_validation/all_rules.rb
graphql-1.7.7 lib/graphql/static_validation/all_rules.rb