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

Conversion creates a different file structure #836

Open
eo33 opened this issue Dec 2, 2024 · 1 comment
Open

Conversion creates a different file structure #836

eo33 opened this issue Dec 2, 2024 · 1 comment

Comments

@eo33
Copy link

eo33 commented Dec 2, 2024

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.

@thim81
Copy link
Contributor

thim81 commented Dec 2, 2024

hi @eo33

the openapi-to-postman conversion has a number of options.

Potentially you can change the folderStrategy option to "Tags", to get a different grouping result:
IMG 2024-12-02 at 09 01 47

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

No branches or pull requests

2 participants