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(index): add AjvClass option #44

Merged
merged 1 commit into from
Jan 24, 2022
Merged

feat(index): add AjvClass option #44

merged 1 commit into from
Jan 24, 2022

Conversation

flupke
Copy link
Contributor

@flupke flupke commented Jan 24, 2022

Description

This allows to customize the Ajv class used for validation, which is
required to use draft-2020-12 schemas.

See https://ajv.js.org/json-schema.html#draft-2020-12

Motivation and Context

We needed this to use the lottie schema with this plugin.

How Has This Been Tested?

I added a test in this repository and used my fork in our own tests.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • My changes are in sync with the code style of this project.
  • There aren't any other open Pull Requests for the same issue/update.
  • These changes should be applied to a maintenance branch.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using Jest-Json-Schema/?

Ability to validate draft-2020-12 schemas.

This allows to customize the Ajv class used for validation, which is
required to use draft-2020-12 schemas.

See https://ajv.js.org/json-schema.html#draft-2020-12
@flupke flupke requested review from a team as code owners January 24, 2022 18:42
@CLAassistant
Copy link

CLAassistant commented Jan 24, 2022

CLA assistant check
All committers have signed the CLA.

@10xLaCroixDrinker 10xLaCroixDrinker requested a review from a team January 24, 2022 18:53
@Matthew-Mallimo Matthew-Mallimo merged commit e79d088 into americanexpress:main Jan 24, 2022
oneamexbot added a commit that referenced this pull request Jan 24, 2022
# [6.1.0](v6.0.0...v6.1.0) (2022-01-24)

### Features

* **index:** add AjvClass option ([#44](#44)) ([e79d088](e79d088))
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 6.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

flupke added a commit to jitter-video/DefinitelyTyped that referenced this pull request Jan 24, 2022
flupke added a commit to jitter-video/DefinitelyTyped that referenced this pull request Jan 24, 2022
flupke added a commit to jitter-video/DefinitelyTyped that referenced this pull request Jan 24, 2022
flupke added a commit to jitter-video/DefinitelyTyped that referenced this pull request Jan 24, 2022
typescript-bot pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Jan 25, 2022
martin-badin pushed a commit to martin-badin/DefinitelyTyped that referenced this pull request Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants