Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The ‘validateProperties’ method now composes a path using the ‘joinPa…

…th’ method
  • Loading branch information...
commit 909e9bf00952efe53bc114bd16b429b0396e3b13 1 parent 9fb4a57
@Baggz authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/engines/json/validateProperties.js
View
5 src/engines/json/validateProperties.js
@@ -19,10 +19,7 @@ Validation.prototype.validateProperties = function(instance, schema, path, callb
// Get the value of property (instance[property])
var propertyValue = self.getProperty(property, instance);
-
- // Compose the property path
- var propertyName = property.indexOf(' ') !== -1 ? '[\'' + property + '\']' : '.' + property,
- propertyPath = path.length === 0 ? property : path + propertyName;
+ var propertyPath = self.joinPath(path, property);
/**
* {
Please sign in to comment.
Something went wrong with that request. Please try again.