Forum Discussion

chrisM9's avatar
chrisM9
New Contributor
4 years ago

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

    • brightchimp's avatar
      brightchimp
      New Member

      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.