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

Add normalizer rules for $defs and const #290

Merged
merged 2 commits into from
Jan 4, 2021
Merged

Conversation

awlayton
Copy link
Contributor

@awlayton awlayton commented Apr 9, 2020

This adds support for newer keywords which have previous equivalents:

  • $defs is mapped to definitions
  • const is mapped to a singleton enum

@bcherny
Copy link
Owner

bcherny commented May 2, 2020

Thanks for the contribution! Mind adding some basic tests to make sure this doesn’t regress in the future?

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Tests

@awlayton awlayton requested a review from bcherny May 7, 2020 23:46
@MaikuMori
Copy link

It would be nice to have this merged since other tooling has already moved to https://json-schema.org/draft/2019-09/schema.

@edzis
Copy link

edzis commented Jul 29, 2020

@bcherny Are the tests fine?

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Looks great. Thank you for the contribution!

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Mind rebasing? Then I'll go ahead and merge.

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

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.

4 participants