Skip to content

Nested OAS Tags When Imported Into a Collection #852

@dshastry

Description

@dshastry

I'm trying to use the CLI in order to import an OpenAPI spec document exported from my documentation tool, Theneo (http://theneo.io/). Theneo leverages the OAS tags structure in order to designate nesting of content. See UI example below.

Image

Here is the generated output for the tag. Theneo appears to use the " / " character to determine nesting within the content structure and generates the below tag.

Image

I run the following command in order to convert Theneo's openapi spec into a postman collection:

npx openapi2postmanv2 -s docs/openapi_spec.yaml -o collection.json -p -O folderStrategy=Tags

This produces the below output. As you can see the nesting in the tags is converted to a fairly flat folder structure.
Image

Is it possible to have an option for a delimiter or something similar where nested tags could be used to drive a nested output in the postman collection structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions