Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
api-blueprint-validator-module
Advanced tools
[![npm version](https://badge.fury.io/js/api-blueprint-validator-module.svg)](http://badge.fury.io/js/api-blueprint-validator-module) [![Build Status](https://travis-ci.org/Aconex/api-blueprint-validator-module.svg)](https://travis-ci.org/Aconex/api-bluep
Readme
Module that validates Blueprint files.
npm install api-blueprint-validator-module
Creating the validator
var blueprintValidator = require('api-blueprint-validator-module')
The API Blueprint Validator can be configured to ignore warnings or to fail on them.
The validation expects a callback function such as:
function (success, validationResults)
success indicates whether the validation has succeed
validationResults is an object containing the used data, errors and warnings:
{
data: '',
errors: [],
warnings: []
}
THe blueprint validator can be used to validate a single file or a collection of files. It uses a glob expression to locate files to be validated.
blueprintValidator.parseAndValidateFiles(<<glob expression>>, failOnWarnings, function(success, validationResult))
String data can also be validated. It is useful when you have the blueprint content available within your process.
blueprintValidator.parseAndValidateFiles(blueprintData, failOnWarnings, function(success, validationResult))
This module uses Drafter.js, which is pre-release from version 1.1.0.
If you want don't want to use Drafter.js you can use version 1.0.x, which uses Protagonist instead.
FAQs
[![npm version](https://badge.fury.io/js/api-blueprint-validator-module.svg)](http://badge.fury.io/js/api-blueprint-validator-module) [![Build Status](https://travis-ci.org/Aconex/api-blueprint-validator-module.svg)](https://travis-ci.org/Aconex/api-bluep
The npm package api-blueprint-validator-module receives a total of 37 weekly downloads. As such, api-blueprint-validator-module popularity was classified as not popular.
We found that api-blueprint-validator-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.