chanfana icon indicating copy to clipboard operation
chanfana copied to clipboard

openapi.schema Does Not Exist

Open jonbeckman opened this issue 5 months ago • 0 comments

Docs indicate that openapi.schema should exist https://github.com/cloudflare/chanfana/blob/270536a555c40572bf189cf74a0c7ceacb6a203e/docs/examples-and-recipes.md?plain=1#L730

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)))
  })

jonbeckman avatar Jul 16 '25 17:07 jonbeckman