@contrail/types
Advanced tools
Comparing version 2.0.27 to 2.0.28
@@ -7,1 +7,2 @@ export * from './formatter'; | ||
export * from './type-roots'; | ||
export * from './validation'; |
@@ -19,1 +19,2 @@ "use strict"; | ||
__exportStar(require("./type-roots"), exports); | ||
__exportStar(require("./validation"), exports); |
@@ -0,3 +1,3 @@ | ||
import { ValidationError, ValidationSummary } from './validation-summary'; | ||
import { Type, TypeProperty } from '..'; | ||
import { ValidationError, ValidationSummary } from './validation-summary'; | ||
export declare const VALUE_IS_NOT_A_VALID_OPTION = "The value provided is not a valid option for this property."; | ||
@@ -4,0 +4,0 @@ export declare const VALUE_IS_NOT_A_VALID_NUMBER = "The value provided is not a valid number."; |
@@ -39,7 +39,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let validationErrors = []; | ||
const value = entity[property.slug || '']; | ||
if (!value) { | ||
return []; | ||
} | ||
return this.validatePropertyValue(value, property); | ||
@@ -46,0 +42,0 @@ }); |
{ | ||
"name": "@contrail/types", | ||
"version": "2.0.27", | ||
"version": "2.0.28", | ||
"description": "Types Utility module", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
29382
40
669
27