dotnet / dotnet/docfx

Swagger response sample and schema not displayed

Open
#2,908 6 comments 5 reactions 0 assignees View on GitHub
rest-api
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**DocFX Version Used**: 2.21.1.1

**Template used**: custom template

**Steps to Reproduce**:

1. added **.swagger.json in docfx.json file
2. imported .swagger files
3. ran the service

**Expected Behavior**: Swagger file should display the sample and schema response. Here is an example:
![swagger-expected](https://user-images.githubusercontent.com/28356429/41648643-2a533ea4-7482-11e8-9690-61f1093d4a38.png)

**Actual Behavior**: Schema tag is not displayed and sample tag is empty:

![swagger-actual](https://user-images.githubusercontent.com/28356429/41648379-605ab8c0-7481-11e8-8d51-77d4f3896635.png)

Can you help me with additional configurations, tools, plugins in order to make these API calls work through swaggers?
Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.