-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v8tenko
committed
Nov 27, 2023
1 parent
a782071
commit 5a7beb0
Showing
11 changed files
with
353 additions
and
31 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
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,218 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`openapi project with examples renders example field 1`] = ` | ||
"<div class="openapi"> | ||
# example | ||
## Request | ||
<div class="openapi__request__wrapper"> | ||
<div class="openapi__request" style="--method: var(--dc-openapi-methods-post)"> | ||
POST {.openapi__method} | ||
\`\`\` | ||
http://localhost:8080/test | ||
\`\`\` | ||
</div> | ||
</div> | ||
Generated server url{.openapi__request__description} | ||
#### Body | ||
{% cut "application/json" %} | ||
\`\`\`json | ||
{ | ||
"name": "Example" | ||
} | ||
\`\`\` | ||
{% endcut %} | ||
## Responses | ||
<div class="openapi__response__code__200"> | ||
## 200 OK | ||
Base 200 response | ||
#### Body | ||
{% cut "application/json" %} | ||
\`\`\`json | ||
{} | ||
\`\`\` | ||
{% endcut %} | ||
</div> | ||
<!-- markdownlint-disable-file --> | ||
</div>" | ||
`; | ||
|
||
exports[`openapi project with examples renders example from allOf 1`] = ` | ||
"<div class="openapi"> | ||
# example | ||
## Request | ||
<div class="openapi__request__wrapper"> | ||
<div class="openapi__request" style="--method: var(--dc-openapi-methods-post)"> | ||
POST {.openapi__method} | ||
\`\`\` | ||
http://localhost:8080/test | ||
\`\`\` | ||
</div> | ||
</div> | ||
Generated server url{.openapi__request__description} | ||
#### Body | ||
{% cut "application/json" %} | ||
\`\`\`json | ||
{ | ||
"name": "string" | ||
} | ||
\`\`\` | ||
{% endcut %} | ||
#||| **Name** | **Type** | **Description** || | ||
|| name | string | |||# | ||
## Responses | ||
<div class="openapi__response__code__200"> | ||
## 200 OK | ||
Base 200 response | ||
#### Body | ||
{% cut "application/json" %} | ||
\`\`\`json | ||
{} | ||
\`\`\` | ||
{% endcut %} | ||
</div> | ||
<!-- markdownlint-disable-file --> | ||
</div>" | ||
`; | ||
|
||
exports[`openapi project with examples renders example from oneOf 1`] = ` | ||
"<div class="openapi"> | ||
# example | ||
## Request | ||
<div class="openapi__request__wrapper"> | ||
<div class="openapi__request" style="--method: var(--dc-openapi-methods-post)"> | ||
POST {.openapi__method} | ||
\`\`\` | ||
http://localhost:8080/test | ||
\`\`\` | ||
</div> | ||
</div> | ||
Generated server url{.openapi__request__description} | ||
#### Body | ||
{% cut "application/json" %} | ||
\`\`\`json | ||
{ | ||
"name": "string" | ||
} | ||
\`\`\` | ||
{% endcut %} | ||
#||| **Name** | **Type** | **Description** || | ||
|| ...rest | oneOf | [Cat](#cat) |||# | ||
#### Or value from: | ||
### Cat | ||
#||| **Name** | **Type** | **Description** || | ||
|| name | string | |||# | ||
## Responses | ||
<div class="openapi__response__code__200"> | ||
## 200 OK | ||
Base 200 response | ||
#### Body | ||
{% cut "application/json" %} | ||
\`\`\`json | ||
{} | ||
\`\`\` | ||
{% endcut %} | ||
</div> | ||
<!-- markdownlint-disable-file --> | ||
</div>" | ||
`; |
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
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
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
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
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
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
Oops, something went wrong.