Function make_validate_payload(request:settings:)
public func make_validate_payload<S: Validatable & Codable>(request: String, settings: S) -> String
Helper function to be used while writing unit tests
let reservedRuntimes: Set
let response_payload = validate(payload: validation_payload)
Parameters
| Name | Type | Description |
|---|---|---|
| s | Your policy settings class |
|
| request | String |
A string that holds the JSON request |
Returns
A String holding the validation payload to give to the validate function