Skip to content

Data is POSTed in invalid format #13

@mjgolinski

Description

@mjgolinski

in my swagger file (tried both v1.2 and v2) I have one "body" parameter:

{
  "name": "body",
  "paramType": "body" // "in" in v2
  "type": "LoginData"
}
//...
    "LoginData": {
      "id": "LoginData",
      "properties": {
        "username": {
          "type": "string"
        },
        "password": {
          "type": "string"
        }
      }
    }

I'd like my client to POST data as {"username":"","password":""} but it's instead wrapped in "body" parameter. If I change my swaggerfile to include 2 body params I get: body parameter with invalid name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions