You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -101,19 +102,22 @@ abstract class BaseJsonValidator extends BaseValidator {
101
102
/**
102
103
* Validate the data against CycloneDX spec of `this.version`.
103
104
*
104
-
* Promise may reject with one of the following:
105
-
* - {@link Validation.NotImplementedError | NotImplementedError} when there is no validator available for `this.version`
106
-
* - {@link Validation.MissingOptionalDependencyError | MissingOptionalDependencyError} when a required dependency was not installed
107
-
* - {@link Validation.ValidationError | ValidationError} when `data` was invalid to the schema
105
+
* Promise completes with one of the following:
106
+
* - `null`, when data was valid
107
+
* - {@link Validation.Types.ValidationError | something} representing the error details, when data was invalid representing the error details, when data was invalid
108
+
*
109
+
* Promise rejects with one of the following:
110
+
* - {@link Validation.NotImplementedError | NotImplementedError}, when there is no validator available for `this.version`
111
+
* - {@link Validation.MissingOptionalDependencyError | MissingOptionalDependencyError}, when a required dependency was not installed
@@ -75,19 +76,22 @@ export class XmlValidator extends BaseValidator {
75
76
/**
76
77
* Validate the data against CycloneDX spec of `this.version`.
77
78
*
78
-
* Promise may reject with one of the following:
79
-
* - {@link Validation.NotImplementedError | NotImplementedError} when there is no validator available for `this.version`
80
-
* - {@link Validation.MissingOptionalDependencyError | MissingOptionalDependencyError} when a required dependency was not installed
81
-
* - {@link Validation.ValidationError | ValidationError} when `data` was invalid to the schema
79
+
* Promise completes with one of the following:
80
+
* - `null`, when data was valid
81
+
* - {@link Validation.Types.ValidationError | something} representing the error details, when data was invalid representing the error details, when data was invalid
82
+
*
83
+
* Promise rejects with one of the following:
84
+
* - {@link Validation.NotImplementedError | NotImplementedError}, when there is no validator available for `this.version`
85
+
* - {@link Validation.MissingOptionalDependencyError | MissingOptionalDependencyError}, when a required dependency was not installed
0 commit comments