swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Map in request body not rendered

Open tsz662 opened this issue 11 years ago • 1 comments

I believe the following schema valid but is not rendered in Swagger UI. Or am I missing something? (Forgive me if this is a duplicate of an existing issue.)

    "/users" : {
      "put" : {
        "summary" : "Locks or removes multiple user accounts in batch.",
        "description" : "Request body carries a map of which key is a user ID and value is boolean; if the value is true, locks the user account. If the value is false, deletes the user account.",
        "consumes" : [ "application/json" ],
        "produces" : [ "application/json" ],
        "parameters" : [ {
          "name" : "userlist",
          "in" : "body",
          "required" : true,
          "schema" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "boolean"
            }
          }
        } ],

tsz662 avatar Jun 09 '15 11:06 tsz662

This is a duplicate of #558. I've modified the issue's title now so it's easier to detect.

webron avatar Jun 09 '15 13:06 webron