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

rafamel / yaml-import / 16
98%

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

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

Jobs
ID Job ID Ran Files Coverage
1 16.1 01 May 2019 07:32AM UTC 0
95.12
Travis Job 16.1
Source Files on build 16
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #16
  • 9cf1f3c8 on github
  • Prev Build on master (#14)
  • Next Build on master (#17)
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