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: Expose validation errors #178

Merged
merged 1 commit into from
Apr 8, 2024
Merged

feat: Expose validation errors #178

merged 1 commit into from
Apr 8, 2024

Conversation

gmaclennan
Copy link
Member

Exposes validation errors as an array on the validate() function, like Ajv does.

Also adds an export of the valueOf utility, which can replace the version used in mapeo-core-next.

Exposes validation errors as an array on the `validate()` function, like Ajv does.
@gmaclennan gmaclennan self-assigned this Apr 8, 2024
Copy link
Contributor

@tomasciccola tomasciccola left a comment

Choose a reason for hiding this comment

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

LGTM! thanks! 💯

@gmaclennan gmaclennan linked an issue Apr 8, 2024 that may be closed by this pull request
@gmaclennan gmaclennan merged commit fffac7f into main Apr 8, 2024
6 checks passed
@gmaclennan gmaclennan deleted the feat/validation-error branch April 8, 2024 16:55
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.

return errors when validating JSONSchemas
2 participants