• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / graphql-js / 3352
98%

Build:
DEFAULT BRANCH: master
Ran 18 Apr 2018 08:40PM UTC
Jobs 1
Files 189
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3352

push

travis-ci

web-flow
SPEC/BUG: Ambiguity with null variable values and default values (#1274)

This change corresponds to a spec proposal (https://github.com/facebook/graphql/pull/418) which solves an ambiguity in how variable values and default values behave with explicit null values, and changes validation rules to better define the behavior of default values. Otherwise, this ambiguity can allows for null values to appear in non-null argument values, which may result in unforeseen null-pointer-errors.

In summary this change includes:

* **BREAKING:** Removal of `VariablesDefaultValueAllowed` validation rule. All variables may now specify a default value.

* Change to `VariablesInAllowedPosition` rule to explicitly not allow a `null` default value when flowing into a non-null argument, and now allows optional (nullable) variables in non-null arguments that provide default values.

* Changes to `ProvidedRequiredArguments` rule (**BREAKING:** renamed from `ProvidedNonNullArguments`) to no longer require values to be provided to non-null arguments which provide a default value.

* Changes to `getVariableValues()` and `getArgumentValues()` to ensure a `null` value never flows into a non-null argument.

* Changes to `valueFromAST()` to ensure `null` variable values do not flow into non-null types.

* Adds to the `TypeInfo` API to allow referencing the expected default value at a given AST position.

3676 of 4070 branches covered (90.32%)

10725 of 10865 relevant lines covered (98.71%)

1083.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3352.1 18 Apr 2018 08:40PM UTC 0
98.71
Travis Job 3352.1
Source Files on build 3352
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3352
  • 4d2438a2 on github
  • Prev Build on master (#3346)
  • Next Build on master (#3353)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc