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: ajv 8 support #92

Merged
merged 1 commit into from
Nov 3, 2021
Merged

feat: ajv 8 support #92

merged 1 commit into from
Nov 3, 2021

Conversation

ext
Copy link
Contributor

@ext ext commented May 22, 2021

Fixes #90. Similar to #91 but I don't think that one is enough as it only fixes one instance of the problem.

@@ -1,1941 +1,31 @@
{
"description": "Schema for Atlassian Document Format.",
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 file is changed because it doesn't work properly with ajv 8, at least not in strict mode. It also yields different errors.

It is a simplified version more suitable for test-cases.

@@ -51,6 +51,7 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "7.0.0",
"@changesets/cli": "^1.3.0",
"ajv": "^8.5.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.

The current tests runs against ajv 6, it now runs against latest.

In my fork I have opted to test against all versions declared in peerDependencies instead, see test

erunion added a commit to readmeio/better-ajv-errors that referenced this pull request Oct 11, 2021
Work based off work from ext on atlassian#92.

Co-authored-by: ext <ext-github@sidvind.com>
erunion added a commit to readmeio/better-ajv-errors that referenced this pull request Oct 11, 2021
* chore(deps): upgrading deps

* feat: adding support for ajv@8

Work based off work from ext on atlassian#92.

Co-authored-by: ext <ext-github@sidvind.com>

Co-authored-by: ext <ext-github@sidvind.com>
@torifat torifat merged commit 8846dda into atlassian:master Nov 3, 2021
@torifat
Copy link
Collaborator

torifat commented Nov 3, 2021

Thanks for your contribution. Sorry, I have been very busy lately. I'm still looking for someone internally to take over this project.

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.

AJV Version 8.0.5 TypeError: Cannot read property 'match' of undefined
3 participants