loopback-swagger icon indicating copy to clipboard operation
loopback-swagger copied to clipboard

From $ref: '#/definitions/ (Swagger specification) to "relations": {} (Loopback model)

Open Cooker-Monster opened this issue 9 years ago • 3 comments

Tricky topic I presume concerning Models Relations management shared by Swagger Spec & Loopback Model.

It seems that relations into loopback json model are not generated by $ref declared into Swagger model when "lb swagger ...' cli is used.

Maybe a workaround already exists?

Cooker-Monster avatar Aug 22 '17 15:08 Cooker-Monster

@rashmihunt Can you look into this? I think we need to use swagger-parser module to load the swagger spec with $ref and deference such pointers to build the full spec object,

raymondfeng avatar Aug 22 '17 17:08 raymondfeng

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 21 '17 18:10 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Nov 04 '17 19:11 stale[bot]