Support for mongoDB nested id
Change model definition to json-schema