Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Improve error messages that are used when oneOf object decoding fails#159

Merged
liamnichols merged 2 commits intomainCreateAPI/CreateAPI:mainfrom
ln/oneOf-enum-error-messagesCreateAPI/CreateAPI:ln/oneOf-enum-error-messagesCopy head branch name to clipboard
Oct 5, 2022
Merged

Improve error messages that are used when oneOf object decoding fails#159
liamnichols merged 2 commits intomainCreateAPI/CreateAPI:mainfrom
ln/oneOf-enum-error-messagesCreateAPI/CreateAPI:ln/oneOf-enum-error-messagesCopy head branch name to clipboard

Conversation

@liamnichols
Copy link
Member

Background

When we faced the linked bug above, it was hard to figure out exactly what was going on at first. The only message that we saw was the following:

Failed to intialize oneOf

It would be nicer if the message logged could help us to understand what has gone on a little more so I have updated it so that it includes more details about the issue.

You can see the diff of the snapshots for an idea of how this looks.

@liamnichols liamnichols requested a review from imjn October 4, 2022 15:09
@liamnichols liamnichols self-assigned this Oct 4, 2022
@liamnichols liamnichols changed the title Improve error messages thrown when oneOf decoding fails Improve error messages that are used when oneOf object decoding fails Oct 4, 2022
@liamnichols liamnichols marked this pull request as ready for review October 4, 2022 15:14
Copy link
Member

@imjn imjn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!!! Thank you very much.
Finally, it's time to adapt DTO and Path to search pages.
This will save me a lot of time 😄

@liamnichols liamnichols merged commit c89fed5 into main Oct 5, 2022
@liamnichols liamnichols deleted the ln/oneOf-enum-error-messages branch October 5, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.