Hi all!
I’ve just upgraded postman from 9.30.0 to the newest version and I’m experiencing issue with importing API (json generated by swagger). For sure this one was working on prev version of postman.Here is the json:
{
"swagger" : "2.0",
"info" : {
"description" : "BCA Rest API.",
"version" : "v1",
"title" : "Generated BCA REST interface.",
"termsOfService" : "DKV",
"contact" : {
"name" : "IT-Logistics",
"url" : "http://www.dkv.be",
"email" : "IT-Logistics@DKV.BE"
},
"license" : {
"name" : "Apache 2.0",
"url" : "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"host" : "ats-t-dkv:8080",
"basePath" : "/bca-ws",
"tags" : [ {
"name" : "Subject Resource"
} ],
"schemes" : [ "http" ],
"paths" : {
"/api" : {
"get" : {
"operationId" : "getApi",
"produces" : [ "application/json" ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"type" : "string"
}
}
}
}
},
"/api/download" : {
"get" : {
"operationId" : "getApiJson",
"produces" : [ "application/octet-stream" ],
"responses" : {
"default" : {
"description" : "successful operation"
}
}
}
},
"/subjects" : {
"get" : {
"tags" : [ "Subject Resource" ],
"summary" : "Get Subject ID",
"description" : "",
"operationId" : "getSubjectId",
"produces" : [ "application/vnd.be.dkv.subject.v1+json;charset=utf-8", "application/json;charset=utf-8" ],
"parameters" : [ {
"name" : "subjectId",
"in" : "query",
"description" : "SubjectId",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "OK",
"schema" : {
"$ref" : "#/definitions/SubjectIdResultTO"
}
},
"400" : {
"description" : "Invalid input",
"schema" : {
"$ref" : "#/definitions/Result"
}
},
"404" : {
"description" : "SubjectId not found",
"schema" : {
"$ref" : "#/definitions/Result"
}
},
"500" : {
"description" : "Internal server error",
"schema" : {
"$ref" : "#/definitions/Result"
}
}
}
}
}
},
"definitions" : {
"PageInfo" : {
"type" : "object",
"properties" : {
"page" : {
"type" : "integer",
"format" : "int64"
},
"pageCount" : {
"type" : "integer",
"format" : "int64"
},
"totalCount" : {
"type" : "integer",
"format" : "int64"
}
}
},
"Result" : {
"type" : "object",
"properties" : {
"pageInfo" : {
"$ref" : "#/definitions/PageInfo"
},
"result" : {
"$ref" : "#/definitions/ResultCode"
}
}
},
"ResultCode" : {
"type" : "object",
"properties" : {
"code" : {
"type" : "integer",
"format" : "int32"
},
"metadata" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"resultCodes" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/ResultCode"
}
}
}
},
"SubjectIdResultTO" : {
"type" : "object",
"properties" : {
"pageInfo" : {
"$ref" : "#/definitions/PageInfo"
},
"result" : {
"$ref" : "#/definitions/ResultCode"
},
"value" : {
"$ref" : "#/definitions/SubjectIdTO"
}
}
},
"SubjectIdTO" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"format" : "int64"
},
"povc" : {
"type" : "string"
},
"fileType" : {
"type" : "string"
},
"subType" : {
"type" : "string"
},
"quotationNumber" : {
"type" : "string"
},
"mailBox" : {
"type" : "string"
},
"prepolicy" : {
"type" : "string"
},
"policy" : {
"type" : "string"
},
"principal" : {
"type" : "integer",
"format" : "int32"
},
"subNumber" : {
"type" : "integer",
"format" : "int32"
},
"filialNumber" : {
"type" : "string"
},
"language" : {
"type" : "string"
},
"getgUID" : {
"type" : "string"
}
}
}
}
}
And all I’m getting is:
(same on web version)
Thanks for advice!