@ui5/project/validation/validator
A collection of validation related APIs
Description: A collection of validation related APIs
Source: project/lib/validation/validator.js, line 4
Methods
(static) getDefaults(options) → {Promise<options>}
Description: Validates the given ui5 configuration and returns default values if none are provided.
Source: project/lib/validation/validator.js, line 159
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | Properties:
|
Throws:
Rejects with a ValidationError when the validation fails.
Type: module:@ui5/project/validation/ValidationError
Returns:
Returns a Promise that resolves when the validation succeeds
Type: Promise<options>
(static) validate(options) → {Promise<undefined>}
Description: Validates the given ui5 configuration.
Source: project/lib/validation/validator.js, line 136
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | Properties:
|
Throws:
Rejects with a ValidationError when the validation fails.
Type: @ui5/project/validation/ValidationError
Returns:
Returns a Promise that resolves when the validation succeeds
Type: Promise<undefined>
(static) validateWorkspace(options) → {Promise<undefined>}
Description: Validates the given ui5-workspace configuration.
Source: project/lib/validation/validator.js, line 203
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | Properties:
|
Throws:
Rejects with a ValidationError when the validation fails.
Type: @ui5/project/validation/ValidationError
Returns:
Returns a Promise that resolves when the validation succeeds
Type: Promise<undefined>

