Skip to content

Commit fa55d95

Browse files
committed
updated examples and generated build
1 parent ca45f82 commit fa55d95

File tree

8 files changed

+36
-17
lines changed

8 files changed

+36
-17
lines changed

dist/rapidoc-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.gz

222 Bytes
Binary file not shown.

dist/rapidoc-min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/report.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/examples/multi-datatypes-test.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
<meta charset='utf-8'>
1313
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'>
1414
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet">
15-
<script type='text/javascript' src='../rapidoc-min.js'></script>
15+
<link href='../index.css' rel='stylesheet'>
16+
<script type='module' src='../rapidoc-min.js'></script>
1617
</head>
1718
<body>
18-
<rapi-doc spec-url="../specs/multi-datatypes-test.yaml"
19+
<rapi-doc
20+
id = "thedoc"
21+
spec-url="../specs/multi-datatypes-test.yaml"
1922
allow-authentication = "false"
2023
show-info = "true"
2124
show-header = "false"
@@ -25,6 +28,14 @@
2528
allow-try = "true"
2629
regular-font = 'Open Sans'
2730
mono-font = "Roboto Mono"
28-
> </rapi-doc>
31+
>
32+
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
33+
<div style="display: flex;justify-content:center; align-items:center; margin:2px 0">
34+
<span> Schema Style</span>
35+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button>
36+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
37+
</div>
38+
</div>
39+
</rapi-doc>
2940
</body>
3041
</html>

docs/examples/schema-table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'>
1414
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet">
1515
<link href='../index.css' rel='stylesheet'>
16-
<script type='text/javascript' src='../rapidoc-min.js'></script>
16+
<script type='module' src='../rapidoc-min.js'></script>
1717
</head>
1818
<body>
1919
<rapi-doc spec-url="../specs/schema.yaml"

docs/rapidoc-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/specs/multi-datatypes.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,26 @@ components:
4040
- number
4141
- string
4242
minLength: 4
43-
examples:
44-
- 123
43+
minimum: 10
4544
name:
4645
type: string
47-
minLength: 4
46+
maxLength: 100
47+
gender:
48+
type: string
49+
enum:
50+
- male
51+
- female
52+
- unknown
4853
location:
49-
type:
50-
- string
51-
- 'null'
54+
description: location can be null, set using `nullable` property thats supported by OpenAPI `3.0.x`
55+
type: string
56+
nullable: true
5257
age:
5358
description: Age of Person
5459
type: integer
60+
minimum: 21
61+
exclusiveMaximum: 70
62+
multipleOf: 5
5563
photoUrls:
5664
description: One URL or Array or URLs or set to false
5765
type:

0 commit comments

Comments
 (0)