Describe the bug
I have setup a simple asp.net core test project, added “Swashbuckle.AspNetCore” version 4.0.1, and i am now trying to import the generated swagger.json file. When trying to do so, postman simply returns “Invalid input”
To Reproduce
Try to import this content:
{
"swagger": "2.0",
"info": {
"title": "Lobby"
},
"paths": {
"/api/lobby/users": {
"post": {
"tags": [
"Lobby"
],
"operationId": "CreateUser",
"consumes": [],
"produces": [
"text/plain",
"application/json",
"text/json"
],
"parameters": [
{
"name": "username",
"in": "query",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {}
}
This will yield “Invalid input”.
Postman version is 7.2.2