validate Host Payload

private open fun validateHostPayload(hostName: String, hostAddress: String): String

Method to validate the payload for the registerHost and editHost requests

Return

the error key if the payload is not valid as String, null otherwise

Parameters

hostName

The name of the host

hostAddress

The address of the host