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

graphql / graphql-js / 3543 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 12 Jun 2018 05:58PM UTC
Files 199
Run time 15s
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

12 Jun 2018 05:54PM UTC coverage: 98.737% (-0.04%) from 98.777%
3543.1

push

travis-ci

web-flow
BREAKING/BUGFIX Strict coercion of scalar types (#1382)

* BREAKING/BUGFIX Strict coercion of scalar types

This no longer accepts incoming variable values in a potentially lossy way, mirroring the existing behavior for literals. This fixes an issue with GraphQL.js being not spec compliant.

This is breaking since servers which used to accept incorrect variable values will now return errors to clients.

Serialization of values is not affected in the same way, since this is not a client-visible behavior.

As a bonus, this adds unique serialization and coercion functions for the ID type, allowing to be more restrictive on numeric types and un-stringable object types, while directly supporting valueOf() methods (ala MongoDB). The changes to how the ID type serializes and coerces data could be potentially breaking.

Fixes #1324

* Updates from review. Simplified ID serialization and added similar logic to string serialization

3452 of 3704 branches covered (93.2%)

10790 of 10928 relevant lines covered (98.74%)

1073.48 hits per line

Source Files on job 3543.1
  • Tree
  • List 0
  • Changed 18
  • Source Changed 6
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3404
  • Travis Job 3543.1
  • 3521e142 on github
  • Prev Job for on master (#3542.1)
  • Next Job for on master (#3547.1)
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