Repository navigation
Make OpenAPI specs collapsible and add constraint-aware rendering - #255
Merged
Merged
Conversation
- Add collapsible OpenAPI operation blocks with configurable initial state (expanded / collapsed) - Add a side TOC menu for easier navigation through endpoints and sections - Support schema validation constraints in rendered output, including min/max length, items, properties, numeric bounds, patterns, and unique items - Resolve referenced request bodies and schema component - Improve markdown and $ref handling - Add CLI contract coverage for the plugin behavior Close docmd-io#254
Member
|
Thank you @w666 for this comprehensive improvement! 🚀 The collapsible OpenAPI operation blocks, TOC integration, rich schema constraints, referenced request body handling, and runtime dependency additions for |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #254
TOC and bullet points in the description are rendered the same way as in SwaggerHub
Operations are collapsible, there is an icon that helps notice it. In plugins config you can configure render it collapsed. Default state is expanded for backward compatibility.
Description and examples merged into one cell, cause previos version worked bad for long items.
Simple types with basic examples still look good
When renders complex type it moves the next column with the description and examples to the side, so not all content visible, but I don't really know how to solve this problem yet. But this is acceptable for now IMO
Here is my plugin config
Type of change
Checklist: