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

fix(core): fixed jsonpath exprs may occasionally yield incorect results #1917

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Oct 27, 2021

Fixes #1910

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

Interesting changes

@P0lip P0lip added the t/bug Something isn't working label Oct 27, 2021
@P0lip P0lip self-assigned this Oct 27, 2021
@@ -32,13 +32,13 @@
"ajv-errors": "~3.0.0",
"ajv-formats": "~2.1.0",
"blueimp-md5": "2.18.0",
"expression-eval": "4.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

expression-eval uses an older version of jsep
There's a PR there that adds newer jsep, but until it's merged we can use simple-eval which does roughly the same.
It's my library tho, but it's very small. Here's pretty much the entire code https://github.com/P0lip/simple-eval/blob/master/src/reduce.mj

'./__karma__/**/*.ts': ['karma-typescript'],
},

// @ts-expect-error: non-standard - karma-env-preprocessor
envPreprocessor: ['USE_NIMMA'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this ENV var is no longer used, should have been deleted long ago.

@P0lip P0lip requested a review from a team October 29, 2021 05:30
@P0lip P0lip requested a review from domagojk November 3, 2021 11:21
@P0lip P0lip enabled auto-merge (squash) November 3, 2021 11:26
@P0lip P0lip merged commit 1a5a227 into develop Nov 3, 2021
@P0lip P0lip deleted the fix/core/nimma-bump branch November 3, 2021 14:38
stoplight-bot pushed a commit that referenced this pull request Nov 4, 2021
# [@stoplight/spectral-core-v1.6.1](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-core-v1.6.0...@stoplight/spectral-core-v1.6.1) (2021-11-04)

### Bug Fixes

* **core:** fixed jsonpath expressions may occasionally yield incorect results ([#1917](#1917)) ([1a5a227](1a5a227))
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-core-v1.6.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Fixed" JSON Paths may occasionally cause troubles
3 participants