@redocly/asyncapi-docs
Version:
Async API docs for Redocly Realm
2 lines (1 loc) • 590 B
JavaScript
import{jsx as p}from"react/jsx-runtime";import{RedocSchema as l,StoreProvider as c}from"@redocly/openapi-docs";function e({options:d,schemaResolved:o,schema:r,slug:s}){var i,n,t;if(!r&&!o)return null;const u={openapi:"3.0.0",info:{version:"1",description:"test",title:"test"},paths:{},"x-root":((n=(i=o?.components)===null||i===void 0?void 0:i.schemas)===null||n===void 0?void 0:n.__root)||r,components:{schemas:Object.assign({},(t=o?.components)===null||t===void 0?void 0:t.schemas)}};return p(c,{options:d,definition:u,children:p(l,{pointer:"#/x-root",slug:s})})}export{e as JsonSchema};