Skip to content

Conversion creates a different file structure #836

@eo33

Description

@eo33

Hey there 👋 I have an OAS 3.0 and would like to convert it to a Postman collection. The openapi-to-postman command works, and the OAS file was successfully converted to a Postman collection, but the collection generated follows a different file structure.

What happened?

This OAS file was successfully converted to this Postman collection file. But the collection follows this folder structure:

Account/
├── auth/
│   ├── register/
│   │	├── POST Register an Account
│   ├── login/
│   │	├── POST Get an API key
│   ├── validate
│   │	├── GET Validate API key
├── users/
│   ├── get_all/
│   │	├──{page}
│   │	│   ├── GET Get Users
│   ├── edit/
│   │	├── POST Edit User Details

This is what it looks like when rendered with Postman:
image

What do I expect to happen?

The folder structure of the postman collection to follow this:

Account
├── POST Register an Account
├── POST Get an API key
├── POST Validate API Key
├── GET Get Users
├── POST Edit User Details

This is what it looks like in Postman:
image

Here's the Postman collection file.

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