Skip to content

openapi.schema Does Not Exist #276

@unibeck

Description

@unibeck

Docs indicate that openapi.schema should exist

const schema = openAPI.schema

For context I am trying to pass it to Scalar's createMarkdownFromOpenApi like so:

  const openapi = fromHono(app, {...})

  app.get("/llms.txt", async (c) => {
    return c.text(await createMarkdownFromOpenApi(JSON.stringify(openapi.schema)))
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions