You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@twboc Unfortunately in LoopBack3 you could not load the dynamically built model in swagger, this is limited by the boot module: swagger is one of the built-in plugins that get executed before any boot script files, and also before function app.start, as you can see from the code
boot(app,__dirname,function(err){if(err)throwerr;// start the server if `$ node server.js`if(require.main===module)app.start();});
Now the team is working on a new version of LoopBack, and the boot implementation is about to start, please see story: loopbackio/loopback-next#441
We appreciate your suggested feature and will see if we can make it happen in the next version of the boot module!
I am closing the issue here, we can keep discussion of possibility in loopbackio/loopback-next#441, feel free to reopen it if you have other questions, thanks for understanding.
Swagger cannot process dynamically discovered models on boot time which ends in a situation that Model schema is undefined in the swagger UI.
Swagger: skipping unknown type 'ModelType'
PACKAGE:
CODE:
The text was updated successfully, but these errors were encountered: