Closed enzonotario closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vitepress-openapi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 3, 2024 3:44am |
[!CAUTION]
Review failed
The pull request is closed.
The pull request introduces several changes across multiple files. It modifies the sidebar
variable definition for improved readability in the docs/.vitepress/config.mts
file. A new optional property, defaultTagDescription
, is added to the SpecConfig
interface in src/composables/useTheme.ts
, enhancing theme configurability. The src/lib/OpenApi.ts
file introduces a new getSpec
function to centralize OpenAPI specification retrieval. The generateMissingTags
function in src/lib/generateMissingTags.ts
is updated to handle cases where spec.paths
may be undefined. Test files are also updated to reflect these changes and enhance coverage.
File | Change Summary |
---|---|
docs/.vitepress/config.mts | Modified sidebar variable definition for improved readability by wrapping spec in an object. |
src/composables/useTheme.ts | Added defaultTagDescription to SpecConfig interface; updated themeConfig and setSpecConfig function. |
src/lib/OpenApi.ts | Introduced getSpec function to centralize OpenAPI specification retrieval; updated existing functions to use getSpec . |
src/lib/generateMissingTags.ts | Removed initial check for spec.paths ; initialized spec.paths to an empty object if undefined; added logic for handling default tags. |
test/composables/openapi.test.ts | Added new test cases and modified existing ones for tag handling and server resolution. |
test/composables/useTheme.test.ts | Updated test cases to reflect changes in defaultTagDescription and reset functionality. |
sidebar
variable in docs/.vitepress/config.mts
, directly related to the changes in this PR.useTheme
function in src/composables/useTheme.ts
, relevant as the main PR also involves changes to this function.SpecConfig
interface, related to changes in the main PR concerning useTheme
.useTheme
function for operation slots and columns configuration, aligning with the main PR's focus.defaultTag
property, directly relating to the main PR's changes regarding tag handling in the OpenAPI specification.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Allows to specify
description
for Default Tag.Related issues/external references
109
Types of changes