Generate mongoose schema from json schema