Form data style when importing swagger into postman

I’m noticing that when we import swagger docs (generated from grape-swagger ) into postman, that the formData seems to come in in x-www-form-urlencoded format, rather than as a json body - is there some import setting that affects this, or will it alwayws some in urlencoded format, e.g.

data[check_id]:<string>
data[amount_cents]:<integer>
data[card_id]:<string>
data[encrypted_payment_data]:<string>
data[tip_amount_cents]:0
data[credit_cents]:0

rather than

{
  "data": {
    "amount_cents": 0,
    "check_id": "<string>",
    "card_id": "<string>",
    "credit_cents": 900,
    "tip_amount_cents": 0
  }
}

here’s a snippet of the swagger:

"/public/payments": {
"post": {
"description": "Pay a check",
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"parameters": [
{
"in": "formData",
"name": "data[check_id]",
"description": "Check Unique Idenitifier",
"type": "string",
"required": true,
"example": "4d1d3aec-740c-46f2-93fb-b9eb5b2147ce"
},
{
"in": "formData",
"name": "data[amount_cents]",
"description": "Cents/Pennies to pay the check with from the card specified via card_id",
"type": "integer",
"format": "int32",
"required": true,
"example": 1000
},

I guess this is more related to they way in which the grape-swagger gem is generating the parameter part of the swagger, and postman is just following grape-swagger’s lead, but I would be very interested in folks opinions.

Many thanks in advance

I’ve found the solution - when importing swagger into postman I always get x-www-urlencoded body rather than json · Issue #829 · ruby-grape/grape-swagger · GitHub