Commit 1e31f61
authored
[Bug] Various fixes to how request and response schemas are handled (#224)
* Add createExampleFromSchema and mute createDiscriminator from createNodes
* Split createExample into request and response to handle separately
* Do not generate sample from xml and cleanup json2xml
* Resolve prop samples recursively
* Add language support to ResponseSamples
* Add convenience scripts for generating API docs
* Comment out createDiscriminator
* Collapse response headers by default
* Add recursive prop resolution
* Add support for props with circular refs
* Re-gen API docs
* Mute createDiscriminator
* Install xml-formatter
* Pretty format XML response examples
* Add support for anyOf/oneOf
* Apply max-height and overflow to all code blocks
* Re-gen API docs
* Improve syntax highlighting for example(s)
* Re-gen API docs
* Pretty format request XML1 parent edac51d commit 1e31f61
61 files changed
Lines changed: 777 additions & 312 deletions
File tree
- demo
- docs
- petstore_versioned
- 1.0.0
- petstore
- packages
- docusaurus-plugin-openapi-docs
- src
- markdown
- openapi
- docusaurus-theme-openapi-docs
- src/theme
- ApiDemoPanel/Body
- ApiItem/Layout
- ResponseSamples
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments