-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error messages when op conversion fails
- Wrap errors during operation processing in an ex-info. The message contains the operation name and the ex-data contains the source operation. - Throw ex-infos with a "missing schema" message instead of NPEs when a necessary schema is null. This turns errors that previously looked like: `java.lang.NullPointerException: Cannot invoke "io.swagger.v3.oas.models.media.Schema.getTypes()" because "schema" is null` into this: `clojure.lang.ExceptionInfo: Exception processing operation "TestOp": Missing schema`
- Loading branch information
1 parent
f81a15f
commit 3fabb61
Showing
2 changed files
with
81 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters