Validator
A utility class which performs validations by checking of required object properties exist.
Test:
Static Method Summary
Static Public Methods | ||
public static |
validateAccessToken(accessTokenModel: Object) Validates an access token model (obtained from the |
|
public static |
validateCollectionDoc(collectionDoc: Object) Validates collection doc format |
|
public static |
validateDeviceCode(deviceCodeModel: Object) Validates a device code model (obtained from the |
Static Public Methods
public static validateAccessToken(accessTokenModel: Object) source
Validates an access token model (obtained from the POST /authorization/v2/token
endpoint)
Params:
Name | Type | Attribute | Description |
accessTokenModel | Object |
Throw:
if access token model is invalid |
public static validateCollectionDoc(collectionDoc: Object) source
Validates collection doc format
Params:
Name | Type | Attribute | Description |
collectionDoc | Object |
Throw:
if collection doc is invalid |