Error importing openapi json

Hi all,
I saw several posts like this, but no resolving answer.
I can’t import an open api json also using the .net scaffolding base API project without any personal impementation.
The json result is

{
  "openapi": "3.0.1",
  "info": {
    "title": "WebApplication20 | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://localhost:7233"
    },
    {
      "url": "http://localhost:5213"
    }
  ],
  "paths": {
    "/weatherforecast": {
      "get": {
        "tags": [
          "WebApplication20"
        ],
        "operationId": "GetWeatherForecast",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WeatherForecast"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "WeatherForecast": {
        "required": [
          "date",
          "temperatureC",
          "summary"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "temperatureC": {
            "type": "integer",
            "format": "int32"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "temperatureF": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "WebApplication20"
    }
  ]
}

I can import it only with copy/paste the JSON and not using the url http://localhost
Same error with http

Postman notify me Error while fetching data from link

Postman v11.36.6

Can someone help me to figure out the problem?

Thank you!

Hey @Faber08 : :waving_hand:t3:

Welcome to the Postman Community :postman:

There was a similar question raised a couple of weeks ago that was passed on to the team. A GitHub issue was created to track this:

Can you provide the information for your issue on there, please?

Hi @danny-dainton,

thank you for your quick reply.
Sure, I’m adding info to the GitHub Issue.

1 Like