jensoleg/swagger-ui

Ability to split body params into single input boxes

Opened this issue · 0 comments

My usecase is as follows, Assuming I have a swagger.json file with body definition such as this

{
     "name": "Body",
     "in": "body",
      "required": true,
       "schema": {
             "type": "object",
              "properties": {
                     "verification": {
                           "type": "object",
                            "properties": {
                               "id": {
                                            "$ref": "#/definitions/SOME_DEFINITION"
                                        },
                                        "additionalData": {
                                            "$ref": "#/definitions/ADDITIONAL_DATA"
                                        }
                                    }
                        }
                }
       }
 }

It seems neater to present the data in this form
screenshot 2017-03-07 16 09 25

As opposed to this form which the theme uses
screenshot 2017-03-07 16 15 10

Any ideas on how to approach this?