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

Handle generic validation error #103

Merged
merged 5 commits into from
May 30, 2024

Conversation

imolorhe
Copy link
Collaborator

Currently we don't return validation errors when we don't have valid corresponding pointers. However we wouldn't always have valid pointers e.g. if the data isn't a valid JSON object (see #98)

Here I just pushRoot in those cases. We can consider adding the default root # pointer but the effect will be the same (i.e. by default all entries will at least match the root pointer and so will set the range to the root)

@imolorhe imolorhe requested a review from acao May 29, 2024 16:14
Copy link

changeset-bot bot commented May 29, 2024

🦋 Changeset detected

Latest commit: da8a9a8

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

This PR includes changesets to release 1 package
Name Type
codemirror-json-schema 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

Copy link

netlify bot commented May 29, 2024

Deploy Preview for codemirror-json-schema ready!

Name Link
🔨 Latest commit da8a9a8
🔍 Latest deploy log https://app.netlify.com/sites/codemirror-json-schema/deploys/665756e2d412630008355307
😎 Deploy Preview https://deploy-preview-103--codemirror-json-schema.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@imolorhe imolorhe linked an issue May 29, 2024 that may be closed by this pull request
@imolorhe imolorhe linked an issue May 29, 2024 that may be closed by this pull request
Copy link
Collaborator

@acao acao left a comment

Choose a reason for hiding this comment

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

nice work!


export {
jsonSchemaLinter,
JSONValidation,
Copy link
Collaborator

Choose a reason for hiding this comment

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

awesome, this takes care of another ticket i think

@imolorhe imolorhe merged commit da7f368 into main May 30, 2024
3 checks passed
@imolorhe imolorhe deleted the imolorhe/handle-generic-validation-error branch May 30, 2024 07:30
acao pushed a commit that referenced this pull request May 30, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- [#103](#103)
[`da7f368`](da7f368)
Thanks [@imolorhe](https://github.com/imolorhe)! - Handle generic
validation error

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants