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

adapt ajv validator to meta-schema version #16

Merged
merged 1 commit into from
Jun 24, 2019

Conversation

ijlyttle
Copy link
Contributor

@ijlyttle ijlyttle commented May 12, 2019

Address #2, to provide ajv-constructor calls according to the meta-schema "draft" version:

  • in JS, provide new functions global.ajv(), global.ajv_04(), and global.get_meta_schema()
    • global.ajv() used for draft-06, draft-07
    • global.ajv_04() used for draft-04, removes keywords
  • in R, call JS to determine the meta-schema version, then call the associated JS validator
  • update tests (uncomments tests)
  • update Roxygen version

All the newly-uncommented tests pass.

…rsion

- in js, provide new functions global.ajv(), global.ajv_04(), and global.get_meta_schema()
  - global.ajv() used for draft-06, draft-07
  - global.ajv_04 used for draft-04, removes keywords
- in R, call js to determine the meta-schema version, then call the associated js validator
- updates tests (uncomments tests)
- updates Roxygen version
@ijlyttle ijlyttle mentioned this pull request May 12, 2019
@karawoo
Copy link
Contributor

karawoo commented May 24, 2019

This looks good to me! Thanks @ijlyttle for solving the puzzle.

Copy link
Member

@richfitz richfitz left a comment

Choose a reason for hiding this comment

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

Wow, thank you so much @ijlyttle - this is terrific

@richfitz richfitz merged commit 60199d6 into ropensci:use-ajv Jun 24, 2019
richfitz added a commit that referenced this pull request Jul 31, 2019
This should have been added to the in.js file rather than directly
to the bundle file - we should document this better
richfitz added a commit that referenced this pull request Aug 1, 2019
This should have been added to the in.js file rather than directly
to the bundle file - we should document this better
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.

None yet

3 participants