yanger icon indicating copy to clipboard operation
yanger copied to clipboard

swagger: issue when imported parent modules

Open rajeevpnair opened this issue 4 years ago • 1 comments

We have 2 types of yang files, common.yang and and service_specific*.yang files, The common yang is imported in all service_specific yang modules

i need to create a api documentation only for the service specific yang and i ran the below command to create a swagger file,

yanger -f swagger -t expand --swagger-path-filter="/data/common:customer/service_specific" --deviation-module=service_specific*.yang common.yang --swagger-basepath https://localhost:8080/restconf -o output.json

Is this the correct way to create a swagger json only for service_specific* yang files ?

Since i added the filter i got swagger file which have the service specific requests, the but the heading of the file is mentioned with common.yang, also the request paths is incorrect wherever i have a parameter in line ( in line parameter ).

Please let me know is this correct way to create a swagger file for the service specific yang models.

rajeevpnair avatar Aug 07 '20 05:08 rajeevpnair

Unfortunately I don't know anything about swagger, and the author of the swagger plugin is not active in this project anymore.

mbj4668 avatar Aug 21 '20 07:08 mbj4668