cloudflare / cloudflare/chanfana

Enable API handler by default as described in issue #272

Open
#278 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
766
Forks
70
Avg merge
25m
Merged PRs (30d)
4

Description

Enable API handler by default, following the discussion in issue #272 (https://github.com/cloudflare/chanfana/issues/272). The feature should ensure that ApiException (and its subclasses) are automatically handled, so developers do not need to implement a global error handler manually. Consider integrating the handler logic into OpenAPIRoute, such as a default implementation for handleApiException.

Reference for implementation and expected behavior: [issue #272](https://github.com/cloudflare/chanfana/issues/272).

Contributor guide

Open the contributing guide

Research direction

Start with issue #272 to understand the expected behavior, then inspect OpenAPIRoute and its handleApiException logic. Done means ApiException and its subclasses are handled automatically by default, without requiring developers to add a global error handler.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.