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

2018-02-13 Thread Serge Joukov
Thanks

On Monday, February 12, 2018 at 4:56:05 PM UTC-5, Ron wrote:
>
> Hi Serge – it’s currently not implemented. Follow 
> https://github.com/swagger-api/swagger-ui/issues/3641 for updates.
>
>  
>
>  
>
>  
>
> *From: *> on behalf of Serge 
> Joukov >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Sunday, February 11, 2018 at 21:31
> *To: *Swagger >
> *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.


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

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

 

 

 

From:  on behalf of Serge Joukov 

Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Sunday, February 11, 2018 at 21:31
To: Swagger 
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.