Skip to content

swagger: issue when imported parent modules #19

Description

@rajeevpnair

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions