Skip to content

Commit 21a0941

Browse files
committed
generated build for 9.1.1
1 parent 9e1ba18 commit 21a0941

File tree

8 files changed

+56
-11
lines changed

8 files changed

+56
-11
lines changed

dist/rapidoc-min.js

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

dist/rapidoc-min.js.gz

1.8 KB
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/rapidoc-min.js.map.gz

8 Bytes
Binary file not shown.

dist/report.html

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

docs/examples/mongo.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<script type="module" src="../rapidoc-min.js"></script>
1616
</head>
1717
<body>
18+
<!--
1819
<rapi-doc id="thedoc"
1920
spec-url = "../specs/mongo.yaml"
2021
allow-authentication = "false"
@@ -26,5 +27,7 @@
2627
primary-color="#f54c47"
2728
show-components = "true"
2829
> </rapi-doc>
30+
-->
31+
<json-schema-viewer id="thedoc" spec-url = "../specs/mongo.yaml" ></json-schema-viewer>
2932
</body>
3033
</html>

docs/rapidoc-min.js

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

docs/specs/mongo.yaml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,49 @@
1-
openapi: 3.1.0
1+
jsonSchemaViewer: 1.0.0
22
info:
33
title: Database Schema
4-
description: APIs Spec for an API mocking servce
4+
schemaAndExamples:
5+
users1:
6+
description: Optionally may provide some Description about the schema. Can contain `markdown` syntax
7+
schema:
8+
$ref: '#/components/schemas/users'
9+
examples:
10+
- valid-json:
11+
summary: Example with Valid JSON String
12+
description: If valid JSON is provided in the example, It will be displayed in JSON tree form. Allowing copy/expand/collapse functionality
13+
value: |
14+
{
15+
"person": {
16+
"fullName": {
17+
"firstName": "Mickey",
18+
"lastName": "Mouse"
19+
},
20+
"age": "9"
21+
}
22+
}
23+
- invalid-json:
24+
summary: Example with Invalid JSON String
25+
description: Invalid JSON is displayed in text-area as is
26+
value: |
27+
{
28+
person: {
29+
fullName: {
30+
firstName: Donald,
31+
lastName: Duck
32+
},
33+
age: 10
34+
}
35+
}
36+
- as-object:
37+
summary: Example specified as object
38+
value:
39+
fullName:
40+
firstName: Donald
41+
lastName: Duck
42+
age: 10
43+
users2:
44+
schema:
45+
$ref: '#/components/schemas/users'
46+
547
components:
648
schemas:
749
users:

0 commit comments

Comments
 (0)