cancel
Showing results for 
Search instead for 
Did you mean: 

Auto generated using Swagger Inspector now showing examples payload

Highlighted
New Contributor

Auto generated using Swagger Inspector now showing examples payload

Hi-

New to swagger and want to generate OAS doc for existing APIs. I call APIs in swagger inspector, create API definition, this takes me over to swaggerhub where I can see OAS file. But examples per below is empty. The response examples output comes in json format.

 

- chrisM9

 

```

responses:
'200':
description: Auto generated using Swagger Inspector
content:
application/json; charset=UTF-8:
schema:
type: string
examples: {}

```

2 REPLIES 2
Highlighted
New Contributor

Re: Auto generated using Swagger Inspector now showing examples payload

Meant NOT showing

Highlighted
New Member

Re: Auto generated using Swagger Inspector now showing examples payload

I'm seeing the same but only against our API, if I use swapi.dev like the example I see the response schema populated.

 

We're using Bearer tokens (without OAuth) but I select OAuth as the authentication method and enter my token there. Inspector successfully calls the API but trying to create the documentation contains nothing about the response.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors
Top Kudoed Posts