Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
conorlennon opened this issue Nov 20, 2017 · 2 comments
Closed

Comments

@conorlennon
Copy link
Contributor

conorlennon commented Nov 20, 2017

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"
}

@conorlennon conorlennon changed the title reqestBody application/x-www-form-urlencoded data not requested correctly requestBody application/x-www-form-urlencoded data not requested correctly Nov 20, 2017
@webron
Copy link
Contributor

webron commented Nov 20, 2017

Thanks for the report. This is covered in #3641.

@webron webron closed this as completed Nov 20, 2017
@spisakni
Copy link

What was the answer to this one? #3641 doesn't say if it was ever added for support.

@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants