Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-schema-linter

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-schema-linter

Command line tool and package to validate GraphQL schemas against a set of rules.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
57K
decreased by-4.51%
Maintainers
1
Weekly downloads
 
Created
Source

graphql-schema-linter

This package provides a command line tool to validate GraphQL schema definitions against a set of rules.

This is still work in progress.

Install

npm install -g graphql-schema-linter

Usage

Usage: graphql-schema-linter [options] [schema.graphql]

Options:

  --format

    Choose the output format of the report.

    Possible values: json, text

  --stdin

    Schema definition will be read from STDIN instead of specified file.

Current rules

DeprecationsHaveAReason

This rule will validate that all deprecations have a reason.

FieldsHaveDescriptions

This rule will validate that all fields have a description.

TypesAreCapitalized

This rule will validate that interface types and object types have capitalized names.

TypesHaveDescriptions

This will will validate that interface types and object types have descriptions.

FAQs

Package last updated on 03 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc