This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dedicated example swagger file to show markdown in excerpts
- Loading branch information
1 parent
5ce5e40
commit b39336f
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"servers": [ | ||
{ | ||
"url": "https://httpbin.org" | ||
} | ||
], | ||
"info": { | ||
"title": "response schemas", | ||
"version": "1.0" | ||
}, | ||
"paths": { | ||
"/anything/markdown": { | ||
"get": { | ||
"summary": "Markdown in Excerpt", | ||
"description": "# Markdown" | ||
} | ||
}, | ||
"/anything/html": { | ||
"get": { | ||
"summary": "HTML in Excerpt", | ||
"description": "<h3>This is HTML</h3>" | ||
} | ||
}, | ||
"/anything/mixed": { | ||
"get": { | ||
"summary": "HTML/Markdown in Excerpt", | ||
"description": "#### markdown \n<p>html</p> " | ||
} | ||
}, | ||
"/anything/escaping": { | ||
"get": { | ||
"summary": "Escaping bad HTML", | ||
"description": "<img src=\"x\" onerror=\"alert('charlie')\">" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters