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

Bump oas-validator ajv dependency to 6.12.3 #262

Closed
wants to merge 1 commit into from

Conversation

lucaslago
Copy link

@lucaslago lucaslago commented Jul 30, 2020

Hi, this PR bumps ajv to 6.12.3 with the intent of closing https://snyk.io/vuln/SNYK-JS-AJV-584908

I had to remove support for draft-05 meta schema due to support removal after draft-06 was released: https://json-schema.org/draft-06/json-schema-release-notes.html#q-what-happened-to-draft-05

I think this caused the author of ajv upstream to delete it on 6.0.0 release, so the meta schema import had to be updated.

According to the specification, draft-05 continued to use draft-04 meta schemas so I think this is a safe change: https://json-schema.org/specification-links.html#draft-5

closes #261

@@ -13,17 +13,16 @@ let ajv = require('ajv')({
allErrors: true,
verbose: true,
jsonPointers: true,
patternGroups: true,
Copy link
Author

Choose a reason for hiding this comment

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

This option was removed on ajv-validator/ajv@e15f543

patternGroups: true,
extendRefs: true // optional, current default is to 'fail', spec behaviour is to 'ignore'
extendRefs: true, // optional, current default is to 'fail', spec behaviour is to 'ignore'
schemaId: 'id'
Copy link
Author

Choose a reason for hiding this comment

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

Following the instructions on using draft-04 per https://ajv.js.org/
image

@MikeRalphson
Copy link
Contributor

Thanks, but I don't want to risk breaking things (e.g. in relation to format uriref, Uri-ref, uri-reference) when the intention is to remove ajv anyway, as stated.

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.

Bump oas-validator ajv dependency to 6.12.3
3 participants