Skip to content

Conversation

iNinja
Copy link
Contributor

@iNinja iNinja commented Oct 17, 2024

Added properties to ValidationResult without throwing

  • Added new nullable properties to ValidationResult without throwing exceptions.
  • Renamed IsSuccess to IsValid

Part of #2711

@iNinja iNinja requested a review from a team as a code owner October 17, 2024 18:27
get
{
if (IsValid)
LogHelper.LogWarning("Warning: Accessing the Error property in a valid result is invalid.");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I wonder if we should have this as an IDX message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll raise an issue to review the messages and look into that as well.

Copy link
Contributor

@FuPingFranco FuPingFranco left a comment

Choose a reason for hiding this comment

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

LGTM

@iNinja iNinja merged commit b18623d into dev Oct 18, 2024
5 checks passed
@iNinja iNinja deleted the iinglese/add-non-throwing-properties-to-validation-result branch November 15, 2024 12:14
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.

Add properties to retrieve Result and Error from ValidationResult without throwing

3 participants