Hello,
I’m am trying to import in Postman an API in OpenApi v3 format. I can do that with a single file and then generate a collection, but i cannot import a folder containing various yaml/json files.
In post https://blog.getpostman.com/2019/01/05/converting-openapi-specs-to-postman-collections/ it is said that in the future there will be such support, are there any news regarding that ?
Is there any other way to import multiple files belonging to a single OpenApi api ?
Hi @arlem, I’m having trouble importing my OpenAPI spec with Postman 7.31.0. It’s split into multiple files. Here’s a generic example of what I’m trying to import. I have two files, openapi.yaml:
openapi: '3.0.0'
info:
title: My API
version: '1'
paths:
/dummy:
$ref: 'dummy.yaml'
and dummy.yaml:
get:
responses:
'200':
description: 'OK'
in the same folder. I try to import that folder using Import Folder in the UI, and I get a collection with no requests (I expect one, “GET /dummy”). the only thing that is imported is the name of the API from info.title. What am I missing? My actual spec is much more complicated and works fine with e.g. openapi-generator.
Note: the multifile example I’ve seen posted has $ref under paths, but that is invalid according to the spec and my tooling doesn’t support it.
Still not working in 2023. I have examples code in different folder and respective yml files but Postman doesn’t seem to be able to import them properly.