implementation of json schema for validation of tenant API