В параметрах expressSwagger вы можете определить несколько мест, откуда будет читаться документация:
(...)
files: ['./routes/**/*.js', './yourModelPath/*.js'] //Path to the API handle folder
Затем вы можете ссылаться на модель, которая определена в другом файле, как в примере с Продукт ссылка на Точка , которая может быть определена в другом месте:
Файл A:
/**
* @typedef Product
* @property {integer} id
* @property {string} name.required - Some description for product
* @property {Array.<Point>} Point
*/
Файл B:
/**
* @typedef Point
* @property {integer} x.required
* @property {integer} y.required - Some description for point - eg: 1234
* @property {string} color
* @property {enum} status - Status values that need to be considered for filter - eg: available,pending
*/