Merge pull request #89 from ParsePlatform/fosco.schema
Added another map/object fix
This commit is contained in:
@@ -138,6 +138,7 @@ Schema.prototype.validateField = function(className, key, type, freeze) {
|
|||||||
|
|
||||||
var expected = this.data[className][key];
|
var expected = this.data[className][key];
|
||||||
if (expected) {
|
if (expected) {
|
||||||
|
expected = (expected === 'map' ? 'object' : expected);
|
||||||
if (expected === type) {
|
if (expected === type) {
|
||||||
return Promise.resolve(this);
|
return Promise.resolve(this);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user