Hi Serge – it’s currently not implemented. Follow 
https://github.com/swagger-api/swagger-ui/issues/3641 for updates.

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of Serge Joukov 
<jse...@gmail.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Sunday, February 11, 2018 at 21:31
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: display request body properties as fields instead of json in openapi 
3.0

 

I am not able to figure out a way to display the requestBody properties as 
"input fields" instead of a json. Basically I need to display the formdata as 
form rather than json. 

 

Is this supported?

 

openapi: 3.0.1

info:

  title: My API

  description: A sample API

  version: 1.2.3

security:

  - AccessToken: []

  - OAuth2: []

paths:

  /pet/token:

    post:

      summary: Something

      description: 'Blah'

      operationId: authorize

      parameters:

        - name: Ext-Access-Token

          in: header

          description: something something.

          schema:

            type: string

            enum:

              - 'true'

              - 'false'

      requestBody:

        description: Form data

        content:

          application/x-www-form-urlencoded:

            schema:

              type: object

              properties:

                id:

                  type: string

                  format: uuid

        required: true

 

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to