Skip to content

Post method body schema object properties is not mapped in response #185

Description

@mssaravanan

`management:
port: 8000
services:

  • port: 8001
    name: Mock Server
    endpoints:
    • path: /create-user
      method: POST
      headers:
      Accept: application/json
      body:
      schema:
      type: object
      properties:
      name:
      type: string
      instanceId:
      type: string
      id:
      type: string
      response:
      status: 200
      headers:
      content-type: application/json
      body: '{ "name": {{ body.schema.properties.name }}, "id": {{ body.schema.properties.id }}, "message": "User created" }'`

I have tried above post method moch with body data as object., Kindly check and update if any configuration is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions