Forum Discussion

dhiraj1q23's avatar
dhiraj1q23
New Member
4 months ago

swagger 3.0 request body is getting reset to default value while I collapse the API request.

swagger 3.0 request body is getting reset to default value when I collapse the API request. I want if any of the field in request body gets updated it should persist the value even after collapsing the API request.

request body:

{
  "id": "string",
  "seqno": "string"
}

modified request body:

{
  "id": "1000",
  "seqno": "12"
}

Now If I collapse the API in swagger UI, I see the entered data lost and now request body is showing default value:

{
  "id": "string",
  "seqno": "string"
}

No RepliesBe the first to reply