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

flair-doc

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flair-doc - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

8

lib/content-types.js
"use strict";
var jsv = require('JSV').JSV.createEnvironment()
var jsonschema = require('jsonschema')
, contentTypes = {};

@@ -63,10 +63,10 @@

}
var report = jsv.validate(
var errors = jsonschema.validate(
req.body,
contentTypes[mime]
);
if (report.errors.length > 0) {
if (errors.length > 0) {
res.send(400, {
error: 'Body does not match schema for ' + mime,
errors: report.errors
errors: errors
});

@@ -73,0 +73,0 @@ return;

{
"name": "flair-doc",
"version": "0.0.9",
"version": "0.0.10",
"description": "Swagger-compliant REST API documentation generator",

@@ -32,4 +32,4 @@ "main": "lib/index.js",

"joi": "~0.3.4",
"JSV": "~4.0.2"
"jsonschema": "~0.3.2"
}
}
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