You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes:
1. Replace bare except with specific exception types (AttributeError, UnicodeDecodeError)
2. Narrow exception handling for error model parsing to specific types
(ValidationError, ValueError, TypeError, JSONDecodeError)
3. Improve status code classification logic with better comments
and defensive fallback to APIError for unexpected status codes
4. Add documentation for has_wildcard_success flag to clarify when
it should be set (when OpenAPI spec uses '2XX' wildcard pattern)
5. Add inline comments explaining wildcard success handling in templates
Addresses Copilot review comments on PR #124
-`has_wildcard_success`: Set to `True` when the OpenAPI spec defines `'2XX'` wildcard in responses section, indicating any 2xx status code should be accepted as success. When `True`, generated code uses range check `(200 <= status < 300)` instead of explicit list check.
0 commit comments