Closed enzonotario closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vitepress-theme-openapi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 24, 2024 11:29pm |
Los cambios introducen nuevos componentes de Vue para mostrar detalles de la documentación de la API y listas de servidores, así como modificaciones en la gestión del ciclo de vida de los componentes. Se implementan nuevos métodos para acceder a la información de la especificación OpenAPI y se amplía la localización en archivos JSON. Además, se realizan ajustes en las propiedades de los componentes existentes para mejorar la gestión y presentación de los datos.
Archivo | Resumen de cambios |
---|---|
dev/criptoya-argentina/index.md | Se introduce un nuevo gancho de ciclo de vida onUnmounted que modifica la configuración de profundidad de los visores JSON y esquema al desmontar el componente. |
src/components/Common/OAInfo.vue | Se añade un nuevo componente OAInfo que muestra información de la API, incluyendo versión, título, resumen, descripción y detalles de contacto. |
src/components/Common/OAServers.vue | Se añade un nuevo componente OAServers que muestra una lista de URLs de servidores y sus descripciones. |
src/components/Common/OASpec.vue | Se actualizan las propiedades del componente OASpec para incluir hideInfo y hideServers , permitiendo renderizar condicionalmente los componentes OAInfo y OAServers . |
src/components/Try/OARequestParameterInput.vue | Se modifica la propiedad modelValue para aceptar un tipo adicional Boolean , y se asegura que los valores se conviertan a cadena al renderizar. |
src/components/Try/OATryWithVariables.vue | Se ajusta la presentación de los datos de respuesta en el componente OACodeBlock , convirtiendo los datos en formato JSON antes de renderizarlos. |
src/lib/OpenApi.ts | Se actualiza la función OpenApi para acceder a los esquemas de seguridad de manera más segura, y se añaden las funciones getInfo , getExternalDocs y getServers para recuperar propiedades específicas de la especificación. |
src/locales/en.json | Se añaden nuevas claves de localización para "Terms of Service", "License", "Contact", "API Documentation", "External Documentation" y "Servers". |
src/locales/es.json | Se añaden nuevas claves de localización en español para "Terms of Service", "License", "Contact", "API Documentation", "External Documentation" y "Servers". |
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?
pnpm add https://pkg.pr.new/vitepress-theme-openapi@54
pnpm add https://pkg.pr.new/vitepress-theme-openapi@54
commit: f3caeed
Summary by CodeRabbit
Nuevas características
OAInfo
para mostrar información detallada sobre la API, incluyendo versión, título, descripción y enlaces de documentación externa.OAServers
para listar URLs de servidores y sus descripciones.OpenApi
para obtener información adicional de la especificación.Mejoras
OARequestParameterInput
para aceptar un nuevo tipo de entrada:Boolean
.OATryWithVariables
se ha mejorado al convertir los datos a formato JSON.Localización