mean-expert-official / loopback-sdk-builder

Tool for auto-generating Software Development Kits (SDKs) for LoopBack
Other
399 stars 178 forks source link

Question : warnings when generating sdk #614

Open PhilippeCorreges opened 5 years ago

PhilippeCorreges commented 5 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any:

Please add a description for your issue:

If I do not expose USER to REST, like recommended by Loopback, why do I receive the warnings :

WARNING in ./src/app/shared/auth.guard.ts 29:69-76 "export 'UserApi' was not found in './sdk/services'

WARNING in ./src/app/shared/auth.guard.ts 29:96-103 "export 'UserApi' was not found in './sdk/services'

Maybe is it another issue ?

Thanks and Regards,

PhilippeCorreges commented 5 years ago

Also if I set in model-config.json:

"User": { "dataSource": "database", "public": true },

no more warning and also, the app is working fine. That means that having User public set to true is mandatory ....