Skip to content

requestBody application/x-www-form-urlencoded data not requested correctly #3933

@conorlennon

Description

@conorlennon
Q A
Bug or feature request? 3
Which Swagger/OpenAPI version? 3
Which Swagger-UI version? 3.4.5
How did you install Swagger-UI? n/a
Which browser & version? Firefox
Which operating system? Linux Ubuntu 16.04

Demonstration API definition

openapi: "3.0.0"
info:
  version: 1.0.0
  title: Swagger Test                                                                                    
servers:
  - url: /test
paths:   
  /test:  
    patch:                                                                                               
      summary: Update                                                                                    
      parameters:
       - name: id
         in: query                                                                                       
         description: filter on id                                                                       
         schema:                                                                                         
          type: integer                                                                                  
          format: int32
      responses:                                                                                         
        201:
          description: Null response                                                                     
        default:
          description: unexpected error                                                                  
      requestBody:                                                                                       
        description: Request values                                                                      
        required: true
        content: 
         application/x-www-form-urlencoded:                                                              
          schema:                                                                                        
           type: object                                                                                  
           properties:                                                                                   
            orderId:                                                                                     
             type: integer                                                                               
             format: int32
            description:                                                                                 
             type: string     

Expected Behavior

I would expect to be given text boxes to set the value of each of the orderId and description values.

Current Behavior

I get one big text box that an be edited with the following json
{
"orderId": 0,
"description": "string"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions