angular-validated-resource
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -68,3 +68,3 @@ // Generated by CoffeeScript 1.9.3 | ||
queryParams = getQueryParams(params, actionConfig.params, paramDefaults, actionUrl); | ||
validate(queryParams, actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'"); | ||
validate(clean(queryParams), actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'"); | ||
resource = Resource["_" + actionName](params); | ||
@@ -83,4 +83,4 @@ resource.$promise.then(function(response) { | ||
queryParams = getQueryParams(params, actionConfig.params, paramDefaults, actionUrl); | ||
validate(queryParams, actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'"); | ||
validate(body, actionConfig.requestBodySchema, "Request body validation failed for action '" + actionName + "'"); | ||
validate(clean(queryParams), actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'"); | ||
validate(clean(body), actionConfig.requestBodySchema, "Request body validation failed for action '" + actionName + "'"); | ||
resource = Resource["_" + actionName](params, body); | ||
@@ -98,3 +98,3 @@ resource.$promise.then(function(response) { | ||
queryParams = getQueryParams(params, actionConfig.params, paramDefaults, actionUrl); | ||
validate(queryParams, actionConfig.queryParamsSchema, "Query validation failed for action '$" + actionName + "'"); | ||
validate(clean(queryParams), actionConfig.queryParamsSchema, "Query validation failed for action '$" + actionName + "'"); | ||
validate(clean(this), actionConfig.requestBodySchema, "Request body validation failed for action '$" + actionName + "'"); | ||
@@ -101,0 +101,0 @@ promise = this["$_" + actionName](params); |
{ | ||
"name": "angular-validated-resource", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "JSON Schema validation for angular resource", | ||
@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>", |
Sorry, the diff of this file is not supported yet
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
17255