- Add support for enabling / disabling rules for parts of the GraphQL schema using an inline rule override. See section in README.md for usage information. #237 (Thanks @mshwery)
- Support for comment descriptions were mistakenly dropped in
v0.3.0. They were re-added in this version. #230
- Support for comment descriptions has been dropped in favor of descriptions defined using strings. #229
- Bumped GraphQL dependency to v15.
- Fix an issue with
--stdinnot working correctly in some cases. #223 (Thanks @dnerdy)
- Add
arguments-have-descriptionsrule. This rule will validate that all field arguments have a description. #219 (Thanks @aldeed) - Add
descriptions-are-capitalizedrule. This rule will validate that all descriptions, if present, start with a capital letter. #219 (Thanks @aldeed) - Add
input-object-fields-sorted-alphabeticallyrule. This rule will validate that all input object fields are sorted alphabetically. #219 (Thanks @aldeed) - Add
type-fields-sorted-alphabeticallyrule. This rule will validate that all type object fields are sorted alphabetically. #219 (Thanks @aldeed)
- Add a third output format named
compactthat can be used in conjunction with programs likegrep. See README.md for sample output. #209 (Thanks @MatthewRines)
- Allow
firstargument to be a non-nullable integer when connection only supports forward pagination. #203 (Thanks @swac) - Allow
lastargument to be a non-nullable integer when connection only supports backward pagination. #203 (Thanks @swac)
- Add support for
schemaPathsto be configured viapackage.json. See README.md for examples. #196 (Thanks @gagoar)
- Gracefully handle validating schemas that are missing a query root. #189
- Catch invalid
--custom-rule-pathsand report them as errors instead of crashing. #181 (Thanks @jizhang27)
- Add built-in validation for invalid GraphQL schema definitions. Rather than assume GraphQL schemas are valid and crash when they are not,
graphql-schema-linterwill report these errors. #163
- Fixed an issue that caused certain rules to run twice. #133
- Add
--old-implements-syntaxoption to support the old SDL syntax forimplements. #124. (Thanks @ruiaraujo for initial report.)
- The
fields-are-camel-casedandinput-object-values-are-camel-casedrules now allow consecutive capital letters. #121 (Thanks @gracenoah)
- Allow non-null list for
edgesfield. #112
- Removed dependency on
graphql-configuntil it is actually used.
Descriptions must now be defined as strings instead of comments as outlined in the spec.
In order to provide a graceful upgrade path, users can use the --comment-descriptions option to use the old way of defining descriptions.
More information available in #95.
defined-types-are-usedshould not report errors forMutationas that the naming convention for a schema's mutation root. #94defined-types-are-usedshould not report unreferenced types that implement an interface that is used. #94- Return useful error when --stdin is specified but no schema is provided. #96
- Add
relay-connection-types-specrule. See README.md for details. (Thanks @ruiaraujo)
- Add support for node v6. #90 (Thanks @bwillis)
- Fix crash when no schema is provided to the linter. #88 (Thanks @ruiaraujo)
- Add support for custom rules. #79 (Thanks @bwillis)
- Fix crash when duplicate paths are passed to the linter. #82 (Thanks @boopathi)
- Add
fields-are-camel-casedrule. #81 (Thanks @ruiaraujo) - Add
input-object-values-are-camel-casedrule. #81 (Thanks @ruiaraujo)
- Validate configuration options and report when they are invalid. #76 (Thanks @bwillis)
- Fixed an issue where
--textformatter was not returning the rightcolumnfor errors. #74
- Errors now include the name of the rule that caused the error. #71
- Enable
defined-types-are-usedrule. #73 (Thanks @bwillis)
- Fix a crash when running
graphql-schema-linter. #68
- The
types-have-descriptionsrule now validates thatuniontypes have a description. #56 - The
types-have-descriptionsrule now validates thatinputtypes have a description. #57 - The
types-have-descriptionsrule now validates thatscalartypes have a description. #60 - The
types-have-descriptionsrule now validates thatenumtypes have a description. #61 - GraphQL syntax errors will now be reported like other errors instead of crashing. #59
- Fix a crash that occured when a
.graphqlfile had no line breaks. #58
- Remove dependency on
git. #50 (Thanks @Caerbannog)
- Fix broken dependency on
cosmiconfig#3.0. #48 (Thanks @goldcaddy77)
- Fix issue that prevented
graphql-schema-linterfrom running onlts/*version of node. #46 (Thanks @goldcaddy77)
- Fix crash when
graphql-schema-linteris given an invalid schema. #42
- Do not require descriptions on type extension definitions. #41
- Add support for schemas that are split amongst multiple files. #39
- Add what
filean error occurred in toJSONFormatteroutput. #39
- Add
enum-values-all-capsrule. #30 (Thanks @goldcaddy77)
- Deprecate
--onlyand--exceptin favour of--rules. #29
- Add ability to configure
graphql-schema-lintervia configuration files. #26 (Thanks @goldcaddy77)
- Fix a bug where the wrong location (column/line) was being reported for
DeprecationsHaveAReasonrule. #13 - Fix a bug where the wrong location (column/line) was being reported for
TypesAreCapitalizedrule. #14
- Add
defined-types-are-usedrule. #24
- Rule names passed to
--onlyand--exceptshould now be passed in kebab-case instead of UpperCamelCase. #19
- Add
EnumValuesSortedAlphabeticallyrule. #15 (Thanks @goldcaddy77)
- Add some color to
--textoutput format.
- Added
--onlyand--exceptto control what rules get used to validate the schema. - Added
--helpand usage. - Added
--versionto obtain the version ofgraphql-schema-linter.
- Exit code is
1when a linter rule failed against the provided schema. Otherwise exit code will be0.
Bogus test release.
Bogus test release.