wordnik/swagger-js — pull request #65 by lbovet (2013-11-29 16:27:34+00:00)
Title: Added model loader extension point

This adds a small hook to the models creation. It allows to define a modelLoader function in the SwaggerApi class which processes the "models" section of the API description.

The goal is to enable alternative sources for models. For example, I aim at providing models in a separate files. The strategy for fetching and assembling the models can be plugged in using this new hook without touching swagger-js itself.