Comparing version 0.0.9 to 0.0.10
# CHANGELOG.md | ||
## 0.0.10 | ||
###### _2018-06-12_ | ||
- An object in the Schema is now only considered to be a "data definition" if it contains both | ||
a `type` and a `path` property. If an object doesn't contain both of these properties, it will | ||
be treated as a subdocument object instead of a data definition. The upshot of this is that | ||
`type` can now be used as a data-describing property in a Schema definition, provided that it does | ||
not appear alongside a `path` property in that same definition. @shawnmcknight | ||
## 0.0.9 | ||
@@ -3,0 +11,0 @@ ###### _2018-06-07_ |
{ | ||
"name": "mvom", | ||
"author": "STORIS", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Multivalue Object Mapper", | ||
@@ -6,0 +6,0 @@ "main": "./index.js", |
@@ -331,3 +331,3 @@ 'use strict'; | ||
this._isDataDefinition = obj => Object.prototype.hasOwnProperty.call(obj, this._typeProperty); | ||
this._isDataDefinition = obj => Object.prototype.hasOwnProperty.call(obj, this._typeProperty) && Object.prototype.hasOwnProperty.call(obj, 'path'); | ||
@@ -334,0 +334,0 @@ this._mergeSchemaDictionaries = (schema, keyPath) => { |
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
183492