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

rafamel / yaml-import / 16 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 01 May 2019 07:32AM UTC
Files 4
Run time 0s
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

01 May 2019 07:30AM UTC coverage: 95.122% (+0.06%) from 95.062%
16.1

push

travis-ci

rafamel
feat: supports extending schemas for programmatic usage. (#3)

This adds an argument to the getSchema() function to allow passing in a
list of existing js-yaml Schema objects to produce an extended schema
from.

The actual logic doing this is handled entirely by js-yaml itself, it's
Schema.create() function has a two-argument variant that takes a list of
Schema objects as the first argument and a list of Type objects as the
second argument, and produces a schema consisting of the existing types
defined in the Schema objects passed in plus the list of Type objects
passed in.

By default, this uses the DEFAULT_SAFE_SCHEMA from js-yaml as the Schema
to extend, which produces behavior identical to calling Schema.create()
with just a list of extension types.

By adding this functionality, yaml-import can be used with custom types,
or with the special types provided by js-yaml for Javascript regular
expressions and functions.

23 of 26 branches covered (88.46%)

Branch coverage included in aggregate %.

55 of 56 relevant lines covered (98.21%)

20.79 hits per line

Source Files on job 16.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 15
  • Travis Job 16.1
  • 9cf1f3c8 on github
  • Prev Job for on master (#14.1)
  • Next Job for on master (#17.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