summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/json-schema/lib
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/json-schema/lib')
-rw-r--r--deps/npm/node_modules/json-schema/lib/links.js8
-rw-r--r--deps/npm/node_modules/json-schema/lib/validate.js4
2 files changed, 6 insertions, 6 deletions
diff --git a/deps/npm/node_modules/json-schema/lib/links.js b/deps/npm/node_modules/json-schema/lib/links.js
index 2f450ff61d..2ef3f9fb7d 100644
--- a/deps/npm/node_modules/json-schema/lib/links.js
+++ b/deps/npm/node_modules/json-schema/lib/links.js
@@ -1,4 +1,4 @@
-/**
+/**
* JSON Schema link handler
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
* Licensed under the MIT (MIT-LICENSE.txt) license.
@@ -25,11 +25,11 @@ exports.getLink = function(relation, instance, schema){
// gets the URI of the link for the given relation based on the instance and schema
// for example:
// getLink(
- // "brother",
- // {"brother_id":33},
+ // "brother",
+ // {"brother_id":33},
// {links:[{rel:"brother", href:"Brother/{brother_id}"}]}) ->
// "Brother/33"
- var links = schema.__linkTemplates;
+ var links = schema.__linkTemplates;
if(!links){
links = {};
var schemaLinks = schema.links;
diff --git a/deps/npm/node_modules/json-schema/lib/validate.js b/deps/npm/node_modules/json-schema/lib/validate.js
index 4d0b537941..4b6108800a 100644
--- a/deps/npm/node_modules/json-schema/lib/validate.js
+++ b/deps/npm/node_modules/json-schema/lib/validate.js
@@ -207,8 +207,8 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
if(typeof instance != 'object' || instance instanceof Array){
errors.push({property:path,message:"an object is required"});
}
-
- for(var i in objTypeDef){
+
+ for(var i in objTypeDef){
if(objTypeDef.hasOwnProperty(i)){
var value = instance[i];
// skip _not_ specified properties