Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger: issue when imported parent modules #19

Open
rajeevpnair opened this issue Aug 7, 2020 · 1 comment
Open

swagger: issue when imported parent modules #19

rajeevpnair opened this issue Aug 7, 2020 · 1 comment

Comments

@rajeevpnair
Copy link

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.

@mbj4668 mbj4668 changed the title issue when imported parent modules swagger: issue when imported parent modules Aug 21, 2020
@mbj4668
Copy link
Owner

mbj4668 commented Aug 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants