Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prg-blueprint-validator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prg-blueprint-validator

API Blueprint Validator

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Pragonauts Blueprint Validator

Forked from api-blueprint-validator with theese differences:

  • new Protagonist
  • warnings turned into errors

API Blueprint Validator validates API Blueprint documents and their JSON payload.

Examples outputs

Invalid API Blueprint:

Error: unexpected header block, expected a group, resource or an action definition, e.g. '# Group ', '# []' or '# ' on line 60

Invalid JSON response:

Error in JSON response in group "Articles", resource "Articles", action "List articles"
    Parse error on line 32:
    ...                    "unverifiable":5
    -----------------------^
    Expecting 'EOF', '}', ',', ']', got 'STRING'

Usage

$ ./api-blueprint-validator apiary.apib

Returns exit code 1 if errors was find in Blueprint or in JSON requests or responses, otherwise returns 0, so you can use this tool with you CI server (simple Travis integration example).

Installation

Node.js and NPM is required.

$ npm install api-blueprint-validator

Command Line Options

$ ./api-blueprint-validator --help
Usage: node ./node_modules/.bin/api-blueprint-validator apiary.apib

Options:
  --validate-requests   [default: true]
  --validate-responses  [default: true]

FAQs

Package last updated on 14 Dec 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc