Forum Discussion

edgarjsanchez's avatar
edgarjsanchez
Occasional Visitor
5 years ago

Swagger Inspector response documented as "string"

Using Swagger Inspector I'm testing with a single API from our company. In the Inspector screen when we hit send we get a good response with a JSON message (as expected). When we create an API definition, the response section only says it a JSON string but there are no other details about the response. We where expecting some sort of detail about the JSON response and the fields included.

 

Example of response:

 

{"ServicesResponse":{"xsi:noNamespaceSchemaLocation":"https://vseservices.ilg.ad/xsd/tour/owner/GetFinanceLoanBalance.xsd","ResponseStatus":{"Type":"ResponseStatus","Messages":{"Message":[{"IsSystemMessage":true,"Description":"InvocationId:8AB085296A4BBF80016A74716E721DA0:","MessageSeq":0,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":true,"Description":"ApplicationName:SVO:","MessageSeq":1,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :PropId:->:01:class java.lang.String","MessageSeq":2,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :ApplicationName:->:SVO:class java.lang.String","MessageSeq":3,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :security.Password:->:[Excluded]:","MessageSeq":4,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :security.UserId:->:odp11000:class java.lang.String","MessageSeq":5,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :format:->:JSON:class java.lang.String","MessageSeq":6,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :Contract:->:031209:class java.lang.String","MessageSeq":7,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Parameter dump :CompId:->:26:class java.lang.String","MessageSeq":8,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"Transaction id = 8AB085296A4BBF80016A74716E721DA0","MessageSeq":9,"MessageTS":"2019-05-01T13:29:12","MessageLevel":2},{"IsSystemMessage":false,"Description":"Success.","MessageSeq":10,"MessageTS":"2019-05-01T13:29:12","MessageLevel":2},{"IsSystemMessage":false,"Description":"Current Server: vsvrvabbjp02.ilg.ad","MessageSeq":11,"MessageTS":"2019-05-01T13:29:12","MessageLevel":4},{"IsSystemMessage":false,"Description":"BEGIN_CALL Server: vsvrvabbjp02.ilg.ad","MessageSeq":12,"MessageTS":"2019-05-01T13:29:12","MessageLevel":1},{"IsSystemMessage":false,"Description":"END_CALL: ELAPSED TIME = .07 seconds","MessageSeq":13,"MessageTS":"2019-05-01T13:29:12","MessageLevel":2}]},"ApplicationReturnCode":0,"InvocationId":"8AB085296A4BBF80016A74716E721DA0","Successful":true,"AuthorizationSuccessful":true},"ResponseData":{"financeLoanBalance":{"mortgageBalance":"0","dueDate":"2006-01-20T00:00:00.000Z"}},"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"}}

No RepliesBe the first to reply