jensoleg / swagger-ui

Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
http://swagger.io
Other
1.13k stars 310 forks source link

Ability to split body params into single input boxes #76

Open kenigbolo opened 7 years ago

kenigbolo commented 7 years ago

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?