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

Return an object with proper messages after successful validation #18

Open
theisuru opened this issue Jun 4, 2021 · 0 comments
Open

Comments

@theisuru
Copy link
Collaborator

theisuru commented Jun 4, 2021

Currently successful validation returns an empy array. This is confusing to the end program instead return an object with defined fields for both valid and invalid responses.

{
"validationStatus": VALID, 
"warnings": ["missing recommended field xxx"], 
"errors": []
}
@theisuru theisuru changed the title Return object with proper message after successful validation Return an object with proper messages after successful validation Jun 4, 2021
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

No branches or pull requests

1 participant