Validates a reverse-proxy configuration document whole and answers it normalised, every member present, or refuses it by name with a code.
the document, as an object or as JSON text
Optional
the PEP the document is for: a simple or public route's policy is then the one generated for it (generatedPolicyName())
generatedPolicyName()
{ ok: true, proxy }, or { ok: false, why, code }
{ ok: true, proxy }
{ ok: false, why, code }
Validates a reverse-proxy configuration document whole and answers it normalised, every member present, or refuses it by name with a code.