loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Swagger: skipping unknown type "$new_AccessToken".

Open agung-wete opened this issue 9 years ago • 30 comments

Description/Steps to reproduce

Fresh install loopback, then run node .

Expected result

No error

Result

Swagger: skipping unknown type "$new_AccessToken".
Web server listening at: http://localhost:3000
Browse your REST API at http://localhost:3000/explorer

Additional information

Version: loopback 3.11.1 loopback-swagger 4.3.0 loopback-explorer 2.0.2

win32 x64 6.11.3

agung-wete avatar Sep 13 '17 23:09 agung-wete

Same problem here

george-oakling avatar Sep 18 '17 18:09 george-oakling

Me too! I have the same problem with all hasMany relations! This started happening with loopback-swagger version > 4

iorlandini avatar Sep 18 '17 20:09 iorlandini

I have the same issue, but does not seem to cause malfunction.

ArturoBurela avatar Sep 19 '17 02:09 ArturoBurela

it causes malfunction when you generate swagger for external use, you get errors in parsing JSON/YAML definition

george-oakling avatar Sep 19 '17 11:09 george-oakling

Me too! Swagger: skipping unknown type "$new_AccessToken". Web server listening at: http://localhost:3000 Browse your REST API at http://localhost:3000/explorer

[email protected] [email protected]

macOs Sierra Darwin Kernel Version 16.7.0 Node v7.10.0

fabiorecife avatar Sep 23 '17 06:09 fabiorecife

same here

septk avatar Sep 23 '17 10:09 septk

same

Balipeace avatar Sep 24 '17 05:09 Balipeace

same

gpmake avatar Sep 27 '17 08:09 gpmake

same here, dont' know what's going on?

vjtc0n avatar Sep 28 '17 10:09 vjtc0n

Solve this by update the package.json with "loopback": "3.2.1", i'm not sure this is the right way but it's works for me

ahelliet avatar Sep 29 '17 22:09 ahelliet

@ahelliet, I tried your solution and the message disappears, but running lb export-api-def still produces invalid definitions.

ArturoBurela avatar Sep 29 '17 22:09 ArturoBurela

Updated to

message still there

agung-wete avatar Sep 30 '17 23:09 agung-wete

same here... ??

maximedubois avatar Oct 06 '17 11:10 maximedubois

Same here .

├── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] │ │ ├─┬ [email protected] ├─┬ [email protected] ├─┬ [email protected] │ ├── [email protected]

biskandar avatar Oct 07 '17 05:10 biskandar

Same Problem here...

Swagger: skipping unknown type "$new_AccessToken". Web server listening at: http://localhost:3000 Browse your REST API at http://localhost:3000/explorer

Praful-Mali avatar Oct 08 '17 11:10 Praful-Mali

Same, using last version.

santiagovdk avatar Oct 14 '17 00:10 santiagovdk

Same issue here! "loopback": "^3.15.0", "loopback-boot": "^2.26.2", "loopback-component-explorer": "^5.2.0", osX 10.12.6 Node: v6.11.3

FlorianBouron avatar Oct 14 '17 18:10 FlorianBouron

i also face the same issue, it happen when i abruptly close terminal where the node is running, i slove it by closing the all terminal, and run "node ." in fresh terminal

inyee786 avatar Oct 16 '17 20:10 inyee786

Same problem here

jcurlier avatar Oct 18 '17 04:10 jcurlier

same here

el-davo avatar Oct 18 '17 15:10 el-davo