Skip to content

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?

@seanpdoyle seanpdoyle force-pushed the remove-support-for-options branch from 5d98c96 to a228105 Compare April 13, 2018 19:18

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.

@seanpdoyle seanpdoyle force-pushed the remove-support-for-options branch from a228105 to 9f0bb94 Compare April 13, 2018 19:19
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 force-pushed the remove-support-for-options branch from 9f0bb94 to 48e7620 Compare April 13, 2018 19:21
@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.

4 participants