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

Store ajv errors in ValidationError object #26

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

savvyintegrations
Copy link
Contributor

We want to prettify AJV errors in our HTTP error responses, but we need the AJV errors array to pass to a lib like this.

Copy link

changeset-bot bot commented Jun 6, 2024

🦋 Changeset detected

Latest commit: c12f336

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nrfcloud/ts-json-schema-transformer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@savvyintegrations savvyintegrations changed the title Store ajv errors in validation error Store ajv errors in ValidationError object Jun 6, 2024
Copy link
Contributor

github-actions bot commented Jun 6, 2024

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 2.51% 12/479
🔴 Branches 0.74% 2/269
🔴 Functions 2.78% 2/72
🔴 Lines 2.41% 11/456

Test suite run success

28 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from c12f336

@savvyintegrations savvyintegrations requested a review from semcc June 6, 2024 20:36
@savvyintegrations savvyintegrations merged commit 41ed7c6 into main Jun 6, 2024
6 checks 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