REST JSON wrapping issue with document (Swagger)

I am facing an issue while generating a project in web-methods through a swagger file. The input document is created under _generated input. But when I am sending the request through postman it does not map the request with the document. Instead, it creates the elements independently. Please see the screenshots attached and let me know if there is anything that can help automatically map the elements under the object. As it is happening in the debug screen.

I have shared both screens in the attachment.

1

Designer Version 10.3
Webmehtod:10.3.0.0

Hi Ulhaq,

Have you applied latest fixes on your 10.3 Integration Server version? If yes which ones? Could you attach the swagger file and also the request that you sent from postman?

Regards,
Aishvarya

the last fixed is shown as IS_10.3_core_fix7 and the issue is with all the swagger files.

swagger: '2.0'
info:
  description:  Notification
  version: '1.0'
  title: notifcation
  termsOfService: 'http://swagger.io/terms/'
  contact:
    email: apiteam@swagger.io
  license:
    name: Apache 2.0
    url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
host: 'abaclocalhost:5555'
basePath: /gateway/ss/1.0
schemes:
  - http
paths:
  /Notification:
    post:
      summary: send  notification
      description: ''
      operationId: sendNotification
      consumes:
        - application/json
        - application/xml
      produces:
        - application/json
      parameters:
        - in: body
          name: body
          required: false
          schema:
            $ref: '#/definitions/NotificationRequest'
      responses:
        '200':
          description: sucessfull response
          schema:
            $ref: '#/definitions/NotificationResponse'
        '400':
          description: Bad request. User ID must be an integer and larger than 0.
        '401':
          description: Authorization information is missing or invalid.
        '404':
          description: A user with the specified ID was not found.
        '405':
          description: Invalid input
definitions:
  ApplicationStatus:
    type: object
    properties:
      code:
        type: string
      descriptionAR:
        type: string
      descriptionEN:
        type: string
      id:
        type: integer
        format: int64
    xml:
      name: applicationStatus
  NotificationResponse:
    type: object
    properties:
      status:
        type: string
      transactionId:
        type: string
  NotificationType:
    type: object
    properties:
      code:
        type: string
      descriptionAR:
        type: string
      descriptionEN:
        type: string
      id:
        type: integer
        format: int64
    xml:
      name: NotificationType
  ApplicationType:
    type: object
    properties:
      code:
        type: string
      descriptionAR:
        type: string
      descriptionEN:
        type: string
      id:
        type: integer
        format: int64
    xml:
      name: ApplicationType
  ApiResponse:
    type: object
    properties:
      status:
        type: string
      transactionId:
        type: string
  NotificationCategory:
    type: object
    properties:
      code:
        type: string
      descriptionAR:
        type: string
      descriptionEN:
        type: string
      id:
        type: integer
        format: int64
    xml:
      name: NotificationCategory
  NotificationRequest:
    type: object
    properties:
   
      applicationStatus:
        $ref: '#/definitions/ApplicationStatus'

      notificationType:
        $ref: '#/definitions/NotificationType'
    xml:
      name: NotificationRequest
externalDocs:
  description: Find out more about Swagger
  url: 'http://swagger.io'



sample JSON

{
  "applicationStatus": {
    "code": "string",
    "descriptionAR": "string",
    "descriptionEN": "string",
    "id": 0
  },
  "notificationType": {
    "code": "string",
    "descriptionAR": "string",
    "descriptionEN": "string",
    "id": 0
  }
}


I have noticed that sub-object are coming separately some values are going inside _generated. AS per the screenshot.

3

Hi Ulhaq,
Seems this was a bug and with the latest fix, it is resolved. You can try with latest fix.

Regards,
Aishvarya

Hi Aishvarya,

Can you please mention the latest fix number applicable for v10.3 Core and it would be useful here!. :slightly_smiling_face:

TIA,
RMG

Right, Could you please tell which is the latest fix available in which this bug was fixed, Most probably it is related to swagger import?

IS_10.3_Core_Fix13 is the latest fix.