API tweaks for JSON-Schema validation