express-json-validator-middleware
Advanced tools
Comparing version 1.0.6 to 1.1.0
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224
17281
10
+ Addedajv@5.5.2(transitive)
+ Addedfast-deep-equal@1.1.0(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedjson-schema-traverse@0.3.1(transitive)
- Removedajv@4.11.8(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedisarray@2.0.5(transitive)
- Removedjson-stable-stringify@1.1.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedset-function-length@1.2.2(transitive)
Updatedajv@^5.2.3