raml-typesystem
Advanced tools
Comparing version 0.0.84 to 0.0.85
@@ -1025,2 +1025,7 @@ "use strict"; | ||
} | ||
else if (!ignoreTypeAttr) { | ||
var err_2 = ts.error(messageRegistry.ITEMS_DEFINED_FOR_NON_ARRAY, actualResult); | ||
err_2.setValidationPath({ name: "items" }); | ||
result.putExtra(tsInterfaces.PARSE_ERROR, err_2); | ||
} | ||
} | ||
@@ -1027,0 +1032,0 @@ else { |
{ | ||
"name": "raml-typesystem", | ||
"version": "0.0.84", | ||
"version": "0.0.85", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -466,2 +466,6 @@ { | ||
}, | ||
"ITEMS_DEFINED_FOR_NON_ARRAY" : { | ||
"code" : "ITEMS_DEFINED_FOR_NON_ARRAY", | ||
"message": "The 'items' property can only be defined for array types" | ||
}, | ||
"VALUE_SHOULD_BE_POSITIVE" : { | ||
@@ -468,0 +472,0 @@ "code" : "VALUE_SHOULD_BE_POSITIVE", |
@@ -1098,3 +1098,8 @@ import ts=require("./typesystem"); | ||
return appendedInfo; | ||
} | ||
} | ||
else if(!ignoreTypeAttr){ | ||
let err=ts.error(messageRegistry.ITEMS_DEFINED_FOR_NON_ARRAY,actualResult); | ||
err.setValidationPath({ name:"items"}) | ||
result.putExtra(tsInterfaces.PARSE_ERROR,err); | ||
} | ||
} | ||
@@ -1101,0 +1106,0 @@ else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
2088191
41768