display request body properties as fields instead of json in openapi 3.0

23 views
Skip to first unread message

Serge Joukov

unread,
Feb 11, 2018, 11:31:49 PM2/11/18
to Swagger
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

Ron Ratovsky

unread,
Feb 12, 2018, 4:56:05 PM2/12/18
to swagger-sw...@googlegroups.com

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

--
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-swaggers...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.

Serge Joukov

unread,
Feb 13, 2018, 10:50:10 PM2/13/18
to Swagger
Thanks

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages