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

feat: modify errors response according to standard #45

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

pawelTshDev
Copy link
Contributor

Modify error response according to template:

"validation errors"
{
  errors: {
    "name": [
      "key1",
    ],
    "name.[0]": [
      "kay2",
    ]
  }
}

//"throw new Error"
{
  error: {
    code: "error.code",
    message?: "Message",
  }
}

@pawelTshDev pawelTshDev force-pushed the feat/standard-error-response branch from caf58d7 to bed7e42 Compare April 3, 2024 11:31
@pawelTshDev pawelTshDev merged commit 82940da into main Apr 5, 2024
1 check passed
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