cloudflare / cloudflare/chanfana
openapi.schema Does Not Exist
- Dominant language
- TypeScript
- Stars
- 766
- Forks
- 70
- Avg merge
- 25m
- Merged PRs (30d)
- 4
Description
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)))
})
```
Contributor guide
Research direction
Start with the referenced section of docs/examples-and-recipes.md and trace the object returned by fromHono(app, {...}) to verify whether its schema is exposed. Reproduce the Scalar createMarkdownFromOpenApi usage, then confirm the documented property exists and produces the expected OpenAPI output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100