Skip to content

Commit 9c5401f

Browse files
committed
support for nested combination all-of and one-of
1 parent 07420c3 commit 9c5401f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+38099
-454
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ Custom Eelement for Open-API spec viewing
4242

4343

4444
## Documentation
45-
[Check out the usage and examples](https://mrin9.github.io/RapiDoc/)
45+
[Check out the usage and demos](https://mrin9.github.io/RapiDoc/)
46+
47+
## Examples
48+
[Examples and Test cases](https://mrin9.github.io/RapiDoc/list.html)
4649

4750

4851
## Build Process

dist/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
1616
https://petstore.swagger.io/v2/swagger.json
1717
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
18-
./examples/specs/petstore_anyof.yaml
18+
./examples/specs/petstore_anyof.yaml <<< contains complex one-of with inline primitives and recursive objects
19+
./examples/specs/oneof1.yaml <<< nested oneof
1920
-->
20-
<rapi-doc id="thedoc" spec-url="./examples/specs/allof.json"> </rapi-doc>
21+
<rapi-doc id="thedoc" spec-url="./examples/specs/petstore_anyof.yaml" theme="dark"> </rapi-doc>
2122

2223
<!--
2324
<script>

dist/index.html.gz

58 Bytes
Binary file not shown.

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

261 Bytes
Binary file not shown.

dist/report.html

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

docs/examples/allof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<script type='text/javascript' src='../rapidoc-min.js'></script>
1515
</head>
1616
<body>
17-
<rapi-doc id='thedoc' spec-url='./specs/allof.json' allow-try="false"> </rapi-doc>
17+
<rapi-doc id='thedoc' spec-url='../specs/allof.json' allow-try="false"> </rapi-doc>
1818
</body>
1919
</html>

docs/examples/anyof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<script type='text/javascript' src='../rapidoc-min.js'></script>
1515
</head>
1616
<body>
17-
<rapi-doc id='thedoc' spec-url='./specs/anyof.json' allow-try="false"> </rapi-doc>
17+
<rapi-doc id='thedoc' spec-url='../specs/anyof.json' allow-try="false"> </rapi-doc>
1818
</body>
1919
</html>

docs/examples/example1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
</style>
2121
</head>
2222
<body>
23-
<rapi-doc spec-url="./specs/bitbucket.json" style="min-width:460px" show-info="true"> </rapi-doc>
23+
<rapi-doc spec-url="../specs/bitbucket.json" style="min-width:460px" show-info="true"> </rapi-doc>
2424
</body>
2525
</html>

docs/examples/example2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
</style>
2121
</head>
2222
<body>
23-
<rapi-doc spec-url="./specs/bitbucket.json" theme="dark"> </rapi-doc>
23+
<rapi-doc spec-url="../specs/bitbucket.json" theme="dark"> </rapi-doc>
2424
</body>
2525
</html>

0 commit comments

Comments
 (0)