A collection of validation related APIs
- Description:
- A collection of validation related APIs
- Source:
Methods
(static) getDefaults(options) → {Promise.<options>}
- Description:
- Validates the given ui5 configuration and returns default values if none are provided.
- Source:
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:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Throws:
-
Rejects with a ValidationError when the validation fails.
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:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Throws:
-
Rejects with a ValidationError when the validation fails.
Returns:
Returns a Promise that resolves when the validation succeeds
- Type
- Promise.<undefined>