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
feat(openapi): support UndefinedError in commonSchemas for spec generation (#655)
`UndefinedError` is used for undefined errors, which is very useful when
using Type-Safe Error Handling.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced support for a reusable "UndefinedError" schema in OpenAPI
specifications, enabling consistent and type-safe error handling across
endpoints.
- **Documentation**
- Updated documentation to explain the "UndefinedError" schema,
including expanded notes and clearer formatting.
- **Tests**
- Enhanced test coverage to validate referencing of the "UndefinedError"
schema in error responses.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
The `strategy` option determines which schema definition to use when input and output types differ (defaults to `input`). This is needed because we cannot use the same `$ref` for both input and output in this case.
147
+
148
+
- The `strategy` option determines which schema definition to use when input and output types differ (defaults to `input`). This is needed because we cannot use the same `$ref` for both input and output in this case.
149
+
150
+
-`UndefinedError` is used for undefined errors, which is very useful when using [Type-Safe Error Handling](/docs/error-handling#type‐safe-error-handling).
0 commit comments