Socket
Socket
Sign inDemoInstall

express-json-validator-middleware

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-json-validator-middleware - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

4

package.json
{
"name": "express-json-validator-middleware",
"version": "1.0.6",
"version": "1.1.0",
"description": "An Express middleware to validate requests against JSON Schemas",

@@ -37,4 +37,4 @@ "main": "src/index.js",

"dependencies": {
"ajv": "^4.11.5"
"ajv": "^5.2.3"
}
}

@@ -10,2 +10,6 @@ # express-json-validator-middleware

Coming from `express-jsonschema`? Read our [migration notes](#migrating)
Starting with `1.1.0`, this module uses `ajv@5`, read their changelog and migration guide [here](https://github.com/epoberezkin/ajv/releases/tag/5.0.0).
Based heavily on https://github.com/trainiac/express-jsonschema. A big thank you to @trainiac for the original package!

@@ -194,5 +198,5 @@

## Notes
## <a name="migrating"></a> Migrating from `express-jsonschema`
In ```express-jsonschema```, you could define a required property in two ways. Ajv only supports one way of doing this.
In `express-jsonschema`, you could define a required property in two ways. Ajv only supports one way of doing this.

@@ -208,3 +212,3 @@ ```js

},
required: ['foo']
required: ['foo'] <--
}

@@ -219,3 +223,3 @@ }

type: 'string',
required: true
required: true
}

@@ -222,0 +226,0 @@ }

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