check json schema for endpoint