'"Swagger: skipping unknown type" messages when using Composer REST Server

When starting the Composer REST Server , there are multiple lines that state "Swagger: skipping unknown type" before the server is started.

Discovering types from business network definition ...
Discovered types from business network definition
Generating schemas for all types in business network definition ...
Generated schemas for all types in business network definition
Adding schemas for all types to Loopback ...
Swagger: skipping unknown type "RegionCode".
Swagger: skipping unknown type "RegionCode".
Swagger: skipping unknown type "RegionCode".
Swagger: skipping unknown type "RegionCode".
Swagger: skipping unknown type "Type".
Swagger: skipping unknown type "Country".
Swagger: skipping unknown type "Status".
Swagger: skipping unknown type "JobType".
Swagger: skipping unknown type "CarType".
Swagger: skipping unknown type "Type".
Swagger: skipping unknown type "Country".

It looks like the concepts are being skipped when generating is done, although I am not sure why there are multiple skipping for the same concept. Is this by design?



Solution 1:[1]

But the work around solution is

Lock the package to 8.1.0 version like below composer.json file

    "require": {
        "darkaonline/l5-swagger": "8.1.0",

Thanks

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rakshit Patel