Skip to content

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
@changeset-bot
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

@netlify
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
@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

3 participants