Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validate function to return error slice #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

midorimici
Copy link

@midorimici midorimici commented Sep 1, 2024

Currently, the Validate function returns validation errors as a combined string.
It makes the client difficult to show custom messages to users.
In this PR, I added another function ValidateWithErrorSlice to return an error slice so the caller can handle errors properly.

@midorimici midorimici marked this pull request as ready for review September 1, 2024 12:19
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.

1 participant