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

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

Open
mssaravanan opened this issue Jun 13, 2023 · 0 comments
Open

Comments

@mssaravanan
Copy link

`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.

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

1 participant