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

Remove support for configuring validation options #77

Merged
merged 1 commit into from
Apr 13, 2018

Conversation

seanpdoyle
Copy link
Collaborator

In preparation for #31, this commit removes support for global
and matcher-specific options, like strict: true.

The json_schema gem does not accept similar configuration
options, so we'll remove support entirely.

@seanpdoyle seanpdoyle force-pushed the remove-support-for-options branch 2 times, most recently from bbfddc3 to 5d98c96 Compare April 13, 2018 17:12
Copy link

@mike-burns mike-burns left a comment

Choose a reason for hiding this comment

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

It might be nice for the users if you have two releases: one with the deprecation warning and one with the feature removed entirely. Or is that what this is and I'm misreading?

@seanpdoyle
Copy link
Collaborator Author

@mike-burns I like that idea!

I've opened #78.

Once that's ready to go, how would you suggest we version that release?

The current version is 0.8.0. Is a deprecation warning a patch version change, or a minor version change?


assertion = JsonMatchers::Assertion.new(schema_name.to_s, options)

RSpec::Matchers.define :match_json_schema do |schema_name|

Choose a reason for hiding this comment

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

Lint/UnusedBlockArgument: Unused block argument - schema_name. You can omit the argument if you don't care about it.

In preparation for [#31][#31], this commit removes support for global
and matcher-specific options, like `strict: true`.

The [`json_schema` gem][gem] does not accept similar configuration
options, so we'll remove support entirely.

[#31]: #31
[gem]: https://github.com/brandur/json_schema#programmatic
@seanpdoyle seanpdoyle merged commit 48e7620 into master Apr 13, 2018
@seanpdoyle seanpdoyle deleted the remove-support-for-options branch April 13, 2018 19:26
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