Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger-ui unable to render complex @RequestBody elements #522

Closed
dmascord opened this issue Aug 8, 2014 · 3 comments
Closed

swagger-ui unable to render complex @RequestBody elements #522

dmascord opened this issue Aug 8, 2014 · 3 comments

Comments

@dmascord
Copy link

dmascord commented Aug 8, 2014

Hi,

The following json generated from swagger jaxrs, is unable to render in swagger-ui, without modification to swagger.js:

modified swagger.js:

insert the following at line 716, with the latest version of swagger.js ( as of today ):

if (type === 'undefined' || type === undefined)
{
    console.log("Type " + type + ":" + param.name + " unknown, ignoring...");
    continue;
}

java code:

@post
@JSONP(callback="fn", queryParam="callback")
@produces({ MediaType.APPLICATION_JSON })
@path("/damagedBagCreate/{airline}/{organization}")
@ApiOperation(value = "Execute the workflow", notes = "This API will passthrough the payload through to WorldTracer")
public WTR_DamagedBagsCreateRS_schema damagedBagCreate(
@context UriInfo ui,
@context HttpServletRequest req,
@ApiParam(value = "The organization, or ground handler.", required = true) @PathParam("organization") String organization,
@ApiParam(value = "Airline.", required = true) @PathParam("airline") String airline,
@ApiParam(value = "apiKey", required = true) @QueryParam("apiKey") String apiKey,
@ApiParam(name = "body", value = "WTR_DamagedBagsCreateRQ_schema request", required = true) @RequestBody WTR_DamagedBagsCreateRQ_schema request) {

generated json:

{
"apiVersion": "1.0.0",
"apis": [
{
"operations": [
{
"method": "POST",
"nickname": "damagedBagCreate",
"notes": "This API will passthrough the payload through to WorldTracer",
"parameters": [
{
"allowMultiple": false,
"description": "The organization, or ground handler.",
"name": "organization",
"paramType": "path",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "Airline.",
"name": "airline",
"paramType": "path",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "apiKey",
"name": "apiKey",
"paramType": "query",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "WTR_DamagedBagsCreateRQ_schema request",
"name": "body",
"paramType": "body",
"required": true,
"type": "WTR_DamagedBagsCreateRQ_schema"
}
],
"produces": [
"application/json"
],
"summary": "Execute the workflow",
"type": "void"
}
],
"path": "/worldTracerReport/damagedBagCreate/{airline}/{organization}"
},
{
"operations": [
{
"method": "POST",
"nickname": "delayedBagCreate",
"notes": "This API will passthrough the payload through to WorldTracer",
"parameters": [
{
"allowMultiple": false,
"description": "The organization, or ground handler.",
"name": "organization",
"paramType": "path",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "Airline.",
"name": "airline",
"paramType": "path",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "apiKey",
"name": "apiKey",
"paramType": "query",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "WTR_DamagedBagsCreateRQ_schema request",
"name": "body",
"paramType": "body",
"required": true,
"type": ""
}
],
"produces": [
"application/json"
],
"summary": "Execute the workflow",
"type": "void"
}
],
"path": "/worldTracerReport/delayedBagCreate/{airline}/{organization}"
}
],
"basePath": "..",
"models": {
"": {
"id": "",
"properties": {
"AdditionalInfo": {
"$ref": "AdditionalInfo"
},
"AgentID": {
"type": "string"
},
"AltLangID": {
"type": "string"
},
"Claim": {
"$ref": "Claim"
},
"CrossReferenceRecord": {
"$ref": "CrossReferenceRecord"
},
"CrossReferenceRecords": {
"$ref": "CrossReferenceRecords"
},
"DelayedBagGroup": {
"$ref": "DelayedBagGroup"
},
"DesignatedLocator": {
"type": "string"
},
"EchoToken": {
"type": "string"
},
"HandledAirlineCopyInd": {
"$ref": "HandledAirlineCopyInd",
"enum": [
"YES",
"NO",
"REPEAT",
"FULL"
]
},
"MatchInfo": {
"$ref": "MatchInfo"
},
"Passengers": {
"$ref": "Passengers"
},
"PrimaryLangID": {
"type": "string"
},
"RefStationAirline": {
"$ref": "RefStationAirline"
},
"RetransmissionIndicator": {
"type": "boolean"
},
"SequenceNmbr": {
"format": "double",
"type": "number"
},
"Target": {
"type": "string"
},
"TeletypeAddresses": {
"$ref": "TeletypeAddresses"
},
"TimeStamp": {
"format": "int32",
"type": "integer"
},
"TracingOption": {
"$ref": "TracingOption",
"enum": [
"NON_TRACING",
"ONLINE_TRACING",
"SUSPENDED"
]
},
"TransactionIdentifier": {
"type": "string"
},
"TransactionStatusCode": {
"type": "string"
},
"Version": {
"format": "double",
"type": "number"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"pOS": {
"$ref": "POS"
}
}
},
"AdditionalInfo": {
"id": "AdditionalInfo",
"properties": {
"CustomsInfo": {
"type": "string"
},
"FurtherInfo": {
"type": "string"
},
"MiscInfo": {
"$ref": "MiscInfo"
},
"SupplimentalInfo": {
"$ref": "SupplimentalInfo"
},
"UserComments": {
"$ref": "UserComments"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"AdditionalRoutes": {
"id": "AdditionalRoutes",
"properties": {
"Route": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Address": {
"id": "Address",
"properties": {
"AddressLine": {
"items": {
"type": "string"
},
"type": "array"
},
"Apartment": {
"type": "string"
},
"City": {
"type": "string"
},
"Country": {
"$ref": "Country"
},
"HouseNumber": {
"type": "string"
},
"PostalCode": {
"$ref": "PostalCode"
},
"State": {
"$ref": "State"
},
"StreetName": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Amount": {
"id": "Amount",
"properties": {
"Amount": {
"format": "double",
"type": "number"
},
"CurrencyCode": {
"type": "string"
},
"DecimalPlaces": {
"format": "double",
"type": "number"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Arnk": {
"id": "Arnk",
"properties": {
"OriginDestination": {
"$ref": "OriginDestination"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"AssociatedRecord": {
"id": "AssociatedRecord",
"properties": {
"RecordReference": {
"$ref": "RecordReference"
},
"RecordType": {
"$ref": "RecordType",
"enum": [
"DELAYED",
"ON_HAND",
"RUSH",
"DAMAGED",
"RUSH_DELAYED",
"RUSH_ONHAND",
"RUSH_LZ",
"QUICK_ONHAND"
]
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagAddress": {
"id": "BagAddress",
"properties": {
"AddressLine": {
"items": {
"type": "string"
},
"type": "array"
},
"Apartment": {
"type": "string"
},
"City": {
"type": "string"
},
"Country": {
"$ref": "Country"
},
"HouseNumber": {
"type": "string"
},
"PostalCode": {
"$ref": "PostalCode"
},
"State": {
"$ref": "State"
},
"StreetName": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagContents": {
"id": "BagContents",
"properties": {
"Content": {
"items": {
"$ref": "Content"
},
"type": "array"
},
"Suspended": {
"type": "boolean"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagDelivery": {
"id": "BagDelivery",
"properties": {
"BagReceived": {
"$ref": "BagReceived"
},
"BagReceivedDate": {
"format": "int32",
"type": "integer"
},
"DeliveredTime": {
"format": "int32",
"type": "integer"
},
"Status": {
"$ref": "Status"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagPhones": {
"id": "BagPhones",
"properties": {
"Phone": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagReceived": {
"id": "BagReceived",
"properties": {
"Date": {
"format": "int32",
"type": "integer"
},
"Station": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagTag": {
"id": "BagTag",
"properties": {
"AirlineCode": {
"type": "string"
},
"LicenseNumber": {
"$ref": "LicenseNumber"
},
"Suspended": {
"type": "boolean"
},
"TagSequence": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BagTagDestinations": {
"id": "BagTagDestinations",
"properties": {
"Station": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BaggageItinerary": {
"id": "BaggageItinerary",
"properties": {
"FlightDateOrARNK": {
"items": {
"$ref": "FlightDateOrARNK"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BookingChannel": {
"id": "BookingChannel",
"properties": {
"CompanyName": {
"$ref": "CompanyName"
},
"Primary": {
"type": "boolean"
},
"Type": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"BrandInfo": {
"id": "BrandInfo",
"properties": {
"Suspended": {
"type": "boolean"
},
"Value": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"CellPhones": {
"id": "CellPhones",
"properties": {
"Phone": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Claim": {
"id": "Claim",
"properties": {
"ClaimAmout": {
"$ref": "ClaimAmout"
},
"ClaimDate": {
"format": "int32",
"type": "integer"
},
"CostRemarks": {
"$ref": "CostRemarks"
},
"DateNotified": {
"format": "int32",
"type": "integer"
},
"ExcessValue": {
"$ref": "ExcessValue"
},
"FaultStationCode": {
"type": "string"
},
"FaultTerminal": {
"type": "string"
},
"Insurance": {
"$ref": "Insurance"
},
"LiabilityTag": {
"$ref": "LiabilityTag"
},
"LossComments": {
"type": "string"
},
"LossReasonCode": {
"format": "int32",
"type": "integer"
},
"MissingBags": {
"format": "int32",
"type": "integer"
},
"PartnerCode": {
"$ref": "PartnerCode"
},
"PassengerPayments": {
"$ref": "PassengerPayments"
},
"QuestionnaireDate": {
"format": "int32",
"type": "integer"
},
"ToiletKits": {
"$ref": "ToiletKits"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"ClaimAmout": {
"id": "ClaimAmout",
"properties": {
"Amount": {
"$ref": "Amount"
},
"Unknown": {
"$ref": "Unknown"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"ColorTypeDesc": {
"id": "ColorTypeDesc",
"properties": {
"ColorCode": {
"$ref": "ColorCode",
"enum": [
"WT",
"BK",
"GY",
"BU",
"RD",
"YW",
"BE",
"BN",
"GN",
"MC",
"PU",
"PR"
]
},
"Descriptor": {
"$ref": "Descriptor"
},
"Suspended": {
"type": "boolean"
},
"TypeCode": {
"format": "int32",
"type": "integer"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"CompanyName": {
"id": "CompanyName",
"properties": {
"Code": {
"type": "string"
},
"CodeContext": {
"type": "string"
},
"CompanyShortName": {
"type": "string"
},
"TravelSector": {
"type": "string"
},
"Value": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"ContactInfo": {
"id": "ContactInfo",
"properties": {
"CellPhones": {
"$ref": "CellPhones"
},
"Country": {
"$ref": "Country"
},
"Emails": {
"$ref": "Emails"
},
"Faxes": {
"$ref": "Faxes"
},
"PermPhones": {
"$ref": "PermPhones"
},
"PermanentAddress": {
"$ref": "PermanentAddress"
},
"State": {
"type": "string"
},
"TempAddress": {
"$ref": "TempAddress"
},
"TempPhones": {
"$ref": "TempPhones"
},
"ZipCode": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Content": {
"id": "Content",
"properties": {
"Category": {
"type": "string"
},
"Description": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"CostRemarks": {
"id": "CostRemarks",
"properties": {
"TextLine": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Country": {
"id": "Country",
"properties": {
"Code": {
"type": "string"
},
"Value": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"CrossReferenceRecord": {
"id": "CrossReferenceRecord",
"properties": {
"RecordReference": {
"$ref": "RecordReference"
},
"RecordType": {
"$ref": "RecordType",
"enum": [
"DELAYED",
"ON_HAND",
"RUSH",
"DAMAGED",
"RUSH_DELAYED",
"RUSH_ONHAND",
"RUSH_LZ",
"QUICK_ONHAND"
]
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"CrossReferenceRecords": {
"id": "CrossReferenceRecords",
"properties": {
"CrossReferenceRecord": {
"items": {
"$ref": "CrossReferenceRecord"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"DamageType": {
"id": "DamageType",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"amount": {
"type": "string"
},
"location": {
"type": "string"
},
"type": {
"format": "double",
"type": "number"
}
}
},
"DamageTypes": {
"id": "DamageTypes",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"damageType": {
"items": {
"$ref": "DamageType"
},
"type": "array"
}
}
},
"DamagedBag": {
"id": "DamagedBag",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"bagDetails": {
"type": "string"
},
"bagTag": {
"$ref": "BagTag"
},
"brandInfo": {
"$ref": "BrandInfo"
},
"colorTypeDesc": {
"$ref": "ColorTypeDesc"
},
"damageTypes": {
"$ref": "DamageTypes"
},
"lockCode": {
"format": "double",
"type": "number"
},
"uniqueID": {
"type": "string"
}
}
},
"DamagedBagGroup": {
"id": "DamagedBagGroup",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"baggageItinerary": {
"$ref": "BaggageItinerary"
},
"baggageWeight": {
"type": "string"
},
"contentsDamageDesc": {
"type": "string"
},
"damagedBags": {
"$ref": "DamagedBags"
},
"delivery": {
"$ref": "Delivery"
},
"excessBaggage": {
"type": "string"
},
"lostContents": {
"$ref": "LostContents"
},
"missingWeight": {
"type": "string"
}
}
},
"DamagedBags": {
"id": "DamagedBags",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"damagedBag": {
"$ref": "DamagedBag"
}
}
},
"DelayedBag": {
"id": "DelayedBag",
"properties": {
"AssociatedRecord": {
"$ref": "AssociatedRecord"
},
"BagContents": {
"$ref": "BagContents"
},
"BagDelivery": {
"$ref": "BagDelivery"
},
"BagDetails": {
"type": "string"
},
"BagTag": {
"$ref": "BagTag"
},
"BrandInfo": {
"$ref": "BrandInfo"
},
"ColorTypeDesc": {
"$ref": "ColorTypeDesc"
},
"ContentsDesc": {
"type": "string"
},
"LockCode": {
"type": "string"
},
"Remarks": {
"$ref": "Remarks"
},
"UniqueID": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"DelayedBagGroup": {
"id": "DelayedBagGroup",
"properties": {
"BagAddress": {
"$ref": "BagAddress"
},
"BagLastSeen": {
"type": "string"
},
"BagPhones": {
"$ref": "BagPhones"
},
"BagTagDestinations": {
"$ref": "BagTagDestinations"
},
"BaggageItinerary": {
"$ref": "BaggageItinerary"
},
"BaggageWeight": {
"type": "string"
},
"ContentsGender": {
"$ref": "ContentsGender",
"enum": [
"M",
"F"
]
},
"DelayedBags": {
"$ref": "DelayedBags"
},
"Delivery": {
"$ref": "Delivery"
},
"ExcessBaggage": {
"type": "string"
},
"KeysCollected": {
"type": "boolean"
},
"MatchWindow": {
"format": "int32",
"type": "integer"
},
"MissingWeight": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"DelayedBags": {
"id": "DelayedBags",
"properties": {
"DelayedBag": {
"items": {
"$ref": "DelayedBag"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Delivery": {
"id": "Delivery",
"properties": {
"DeliveryAddress": {
"$ref": "DeliveryAddress"
},
"DeliveryInfo": {
"items": {
"type": "string"
},
"type": "array"
},
"DeliveryService": {
"items": {
"type": "string"
},
"type": "array"
},
"DeliveryWeight": {
"type": "string"
},
"LocalDlvInfo": {
"$ref": "LocalDlvInfo"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"DeliveryAddress": {
"id": "DeliveryAddress",
"properties": {
"AddressLine": {
"items": {
"type": "string"
},
"type": "array"
},
"Apartment": {
"type": "string"
},
"City": {
"type": "string"
},
"Country": {
"$ref": "Country"
},
"HouseNumber": {
"type": "string"
},
"PostalCode": {
"$ref": "PostalCode"
},
"State": {
"$ref": "State"
},
"StreetName": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Descriptor": {
"id": "Descriptor",
"properties": {
"MtrlElement": {
"$ref": "MtrlElement",
"enum": [
"D",
"L",
"M",
"R",
"T",
"X"
]
},
"OtherElement": {
"items": {
"$ref": "OtherElemant"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Emails": {
"id": "Emails",
"properties": {
"Email": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"ExcessValue": {
"id": "ExcessValue",
"properties": {
"Amount": {
"format": "double",
"type": "number"
},
"CurrencyCode": {
"type": "string"
},
"DecimalPlaces": {
"format": "double",
"type": "number"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Faxes": {
"id": "Faxes",
"properties": {
"Fax": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"FlightAndDate": {
"id": "FlightAndDate",
"properties": {
"AirlineCode": {
"type": "string"
},
"Date": {
"type": "string"
},
"FlightNumber": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"FlightDate": {
"id": "FlightDate",
"properties": {
"AirlineCode": {
"type": "string"
},
"Date": {
"format": "int32",
"type": "integer"
},
"FlightNumber": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"FlightDateOrARNK": {
"id": "FlightDateOrARNK",
"properties": {
"Arnk": {
"type": "string"
},
"FlightDate": {
"$ref": "FlightDate"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"FlightSegmantOrARNK": {
"id": "FlightSegmantOrARNK",
"properties": {
"Arnk": {
"$ref": "Arnk"
},
"FlightSegment": {
"$ref": "FlightSegment"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"FlightSegment": {
"id": "FlightSegment",
"properties": {
"FlightAndDate": {
"$ref": "FlightAndDate"
},
"OriginDestination": {
"$ref": "OriginDestination"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"FlightSegments": {
"id": "FlightSegments",
"properties": {
"FlightSegmentOrARNK": {
"items": {
"$ref": "FlightSegmantOrARNK"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Initials": {
"id": "Initials",
"properties": {
"Intial": {
"items": {
"$ref": "Intial"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Insurance": {
"id": "Insurance",
"properties": {
"Value": {
"$ref": "Value",
"enum": [
"YES",
"NO"
]
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Intial": {
"id": "Intial",
"properties": {
"Value": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Itinerary": {
"id": "Itinerary",
"properties": {
"AdditionalRoutes": {
"$ref": "AdditionalRoutes"
},
"FlightSegments": {
"$ref": "FlightSegments"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"LiabilityTag": {
"id": "LiabilityTag",
"properties": {
"Value": {
"$ref": "Value",
"enum": [
"YES",
"NO"
]
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"LicenseNumber": {
"id": "LicenseNumber",
"properties": {
"IssuerCode": {
"type": "string"
},
"TagType": {
"format": "int32",
"type": "integer"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"LocalDlvInfo": {
"id": "LocalDlvInfo",
"properties": {
"DlvInfo": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"LostContents": {
"id": "LostContents",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"content": {
"items": {
"type": "string"
},
"type": "array"
}
}
},
"MatchInfo": {
"id": "MatchInfo",
"properties": {
"Text": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"MiscInfo": {
"id": "MiscInfo",
"properties": {
"TextLine": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Names": {
"id": "Names",
"properties": {
"Name": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"None": {
"id": "None",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"OriginDestination": {
"id": "OriginDestination",
"properties": {
"Destination": {
"type": "string"
},
"Origin": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"POS": {
"id": "POS",
"properties": {
"Source": {
"items": {
"$ref": "Source"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"PartnerCode": {
"id": "PartnerCode",
"properties": {
"CarrierCode": {
"type": "string"
},
"None": {
"$ref": "None"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"PassengerPaymant": {
"id": "PassengerPaymant",
"properties": {
"Amount": {
"$ref": "Amount"
},
"Type": {
"$ref": "Type",
"enum": [
"A",
"D",
"F",
"I",
"X"
]
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"PassengerPayments": {
"id": "PassengerPayments",
"properties": {
"PassengerPayment": {
"items": {
"$ref": "PassengerPaymant"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Passengers": {
"id": "Passengers",
"properties": {
"AutoMsgOption": {
"$ref": "AutoMsgOption",
"enum": [
"SMS",
"EMAIL",
"SMS_AND_EMAIL",
"NO_MESSAGE"
]
},
"ContactInfo": {
"$ref": "ContactInfo"
},
"FareBasis": {
"type": "string"
},
"FrequentFlyerID": {
"type": "string"
},
"Initials": {
"$ref": "Initials"
},
"Itinerary": {
"$ref": "Itinerary"
},
"Language": {
"type": "string"
},
"Names": {
"$ref": "Names"
},
"NoOfPassengers": {
"type": "string"
},
"PassportInfo": {
"type": "string"
},
"PooledTktNumber": {
"type": "string"
},
"Status": {
"type": "string"
},
"TicketNumber": {
"type": "string"
},
"Title": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"pNR": {
"type": "string"
}
}
},
"PermPhones": {
"id": "PermPhones",
"properties": {
"Phone": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"PermanentAddress": {
"id": "PermanentAddress",
"properties": {
"AddressLine": {
"items": {
"type": "string"
},
"type": "array"
},
"Apartment": {
"type": "string"
},
"City": {
"type": "string"
},
"Country": {
"$ref": "Country"
},
"HouseNumber": {
"type": "string"
},
"PostalCode": {
"$ref": "PostalCode"
},
"State": {
"$ref": "State"
},
"StreetName": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Position": {
"id": "Position",
"properties": {
"Altitude": {
"type": "string"
},
"AltitudeUnitOfMeasureCode": {
"type": "string"
},
"Latitude": {
"type": "string"
},
"Longitude": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"PostalCode": {
"id": "PostalCode",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"value": {
"type": "string"
}
}
},
"RecordReference": {
"id": "RecordReference",
"properties": {
"AirlineCode": {
"type": "string"
},
"ReferenceNumber": {
"format": "int32",
"type": "integer"
},
"StationCode": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"RefStationAirline": {
"id": "RefStationAirline",
"properties": {
"AirlineCode": {
"type": "string"
},
"StationCode": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Remarks": {
"id": "Remarks",
"properties": {
"Remark": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"RequestorID": {
"id": "RequestorID",
"properties": {
"CompanyName": {
"$ref": "CompanyName"
},
"Id": {
"type": "string"
},
"Idcontext": {
"type": "string"
},
"Instance": {
"type": "string"
},
"MessagePassword": {
"type": "string"
},
"Type": {
"type": "string"
},
"Url": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Source": {
"id": "Source",
"properties": {
"AgentDutyCode": {
"type": "string"
},
"AgentSine": {
"type": "string"
},
"AirlineVendorID": {
"type": "string"
},
"AirportCode": {
"type": "string"
},
"BookingChannel": {
"$ref": "BookingChannel"
},
"ErspuserID": {
"type": "string"
},
"FirstDepartPoint": {
"type": "string"
},
"Isocountry": {
"type": "string"
},
"Isocurrency": {
"type": "string"
},
"Position": {
"$ref": "Position"
},
"PseudoCityCode": {
"type": "string"
},
"RequestorID": {
"$ref": "RequestorID"
},
"TerminalID": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"State": {
"id": "State",
"properties": {
"StateCode": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"value": {
"type": "string"
}
}
},
"Status": {
"id": "Status",
"properties": {
"Delivered": {
"type": "string"
},
"OutForDelivery": {
"type": "string"
},
"TrackingUpdate": {
"type": "string"
},
"UnableToDeliver": {
"type": "string"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"SupplimentalInfo": {
"id": "SupplimentalInfo",
"properties": {
"TextLine": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"TeletypeAddresses": {
"id": "TeletypeAddresses",
"properties": {
"TeletypeAddress": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"TempAddress": {
"id": "TempAddress",
"properties": {
"Address": {
"$ref": "Address"
},
"ValidityDate": {
"format": "int32",
"type": "integer"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"TempPhones": {
"id": "TempPhones",
"properties": {
"Phone": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"ToiletKits": {
"id": "ToiletKits",
"properties": {
"Female": {
"format": "int32",
"type": "integer"
},
"Male": {
"format": "int32",
"type": "integer"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"Unknown": {
"id": "Unknown",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"UserComments": {
"id": "UserComments",
"properties": {
"TextLine": {
"items": {
"type": "string"
},
"type": "array"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
}
}
},
"WTR_DamagedBagsCreateRQ": {
"id": "WTR_DamagedBagsCreateRQ",
"properties": {
"additionalInfo": {
"$ref": "AdditionalInfo"
},
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"agentID": {
"type": "string"
},
"altLangID": {
"type": "string"
},
"claim": {
"$ref": "Claim"
},
"damagedBagGroup": {
"$ref": "DamagedBagGroup"
},
"designatedLocator": {
"type": "string"
},
"echoToken": {
"type": "string"
},
"handledAirlineCopyInd": {
"type": "string"
},
"pOS": {
"$ref": "POS"
},
"passengers": {
"$ref": "Passengers"
},
"primaryLangID": {
"type": "string"
},
"refStationAirline": {
"$ref": "RefStationAirline"
},
"retransmissionIndicator": {
"type": "boolean"
},
"sequenceNmbr": {
"format": "double",
"type": "number"
},
"target": {
"type": "string"
},
"timeStamp": {
"type": "string"
},
"transactionIdentifier": {
"type": "string"
},
"transactionStatusCode": {
"type": "string"
},
"version": {
"format": "double",
"type": "number"
}
}
},
"WTR_DamagedBagsCreateRQ_schema": {
"id": "WTR_DamagedBagsCreateRQ_schema",
"properties": {
"additionalProperties": {
"$ref": "Map[string,Object]"
},
"wTR_DamagedBagsCreateRQ": {
"$ref": "WTR_DamagedBagsCreateRQ"
}
}
}
},
"resourcePath": "/CrewServices/worldTracerReport",
"swaggerVersion": "1.2"
}

@dmascord
Copy link
Author

dmascord commented Aug 8, 2014

Just to note, even with the modification to the swagger.js, the worldTracerReport API doesn't show in swagger-ui.

@webron
Copy link
Contributor

webron commented Aug 8, 2014

The problem is not with swagger-ui but rather with the swagger output. Your body parameter has an empty value for its type which is invalid with regards to the swagger spec.

Could you please open this issue on swagger-core and give more details on your set up (swagger library, versions, runtime environment and details about the model you use for the body)?
If you don't use swagger-core but another java/scala library, please send a message to the mailing list with the above details.

@webron
Copy link
Contributor

webron commented Jan 22, 2015

Closing as unrelated to swagger-ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants