-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…Titles in schema
- Loading branch information
Showing
8 changed files
with
316 additions
and
13 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,48 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-132775238-1'></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'UA-132775238-1'); | ||
</script> | ||
<meta charset='utf-8'> | ||
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'> | ||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet"> | ||
<link href='../index.css' rel='stylesheet'> | ||
<script type='module' src='../rapidoc-min.js'></script> | ||
</head> | ||
<body> | ||
<rapi-doc spec-url="../specs/schema-title-and-descriptions.yaml" | ||
id = "thedoc" | ||
allow-authentication = "false" | ||
allow-search = "false" | ||
show-info = "false" | ||
show-header = "false" | ||
render-style = "read" | ||
allow-try = "false" | ||
regular-font = 'Open Sans' | ||
mono-font = "Roboto Mono" | ||
theme = "dark" | ||
schema-style='table' | ||
> | ||
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;"> | ||
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div> | ||
<div style="display: flex;justify-content: center; margin: 2px 0"> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button> | ||
</div> | ||
|
||
<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font Size </div> | ||
<div style="display: flex;justify-content: center; margin: 2px 0""> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'default')" >Default</button> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'large')" >Large</button> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'largest')" >Largest</button> | ||
</div> | ||
</div> | ||
</rapi-doc> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Schema Titles and Description Testcase | ||
description: More detailed description of the titles example API | ||
version: '1' | ||
paths: | ||
/object: | ||
get: | ||
summary: Object | ||
responses: | ||
default: | ||
description: Response description. | ||
content: | ||
application/json: | ||
schema: | ||
title: Root Object Title | ||
description: Root Object Description | ||
type: object | ||
properties: | ||
propString: | ||
title: Prop 1 Title | ||
description: Property 1 description | ||
type: string | ||
propArrayOfString: | ||
type: array | ||
title: Array Title | ||
description: Array Description | ||
items: | ||
title: Array Item Title | ||
description: Array Item Description (premitive) | ||
type: string | ||
propArrayOfObject: | ||
type: array | ||
title: Array Title | ||
description: Array Description | ||
items: | ||
type: object | ||
title: Array Item Title | ||
description: Array Item Description (object) | ||
properties: | ||
name: | ||
type: string | ||
title: Title | ||
description: description | ||
age: | ||
type: integer | ||
title: Title | ||
description: description | ||
|
||
/array-of-string: | ||
get: | ||
summary: Array Of String | ||
responses: | ||
default: | ||
description: Response description. | ||
content: | ||
application/json: | ||
schema: | ||
title: Root Array Title | ||
description: Root Array Description | ||
type: array | ||
items: | ||
title: Array Item Title | ||
description: Array Item Description (premitive) | ||
type: string | ||
/array-of-object: | ||
get: | ||
summary: Array Of Object | ||
responses: | ||
default: | ||
description: Response description. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
title: Root Object Title | ||
description: Root Object Description | ||
properties: | ||
array_attribute: | ||
type: array | ||
minItems: 10 | ||
maxItems: 20 | ||
title: Array Title | ||
description: Array Description | ||
items: | ||
type: object | ||
title: Array Item Title | ||
minProperties: 2 | ||
maxProperties: 2 | ||
description: Array Item Description | ||
properties: | ||
key: | ||
type: string | ||
value: | ||
type: integer | ||
minimum: 20 |
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.