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

STRICT_ORDER + NON_EXTENSIBLE #124

Open
raderio opened this issue Jul 30, 2020 · 1 comment
Open

STRICT_ORDER + NON_EXTENSIBLE #124

raderio opened this issue Jul 30, 2020 · 1 comment

Comments

@raderio
Copy link

raderio commented Jul 30, 2020

In some cases we need to verify that the list order and also that all the fields are covered, so, an option like both STRICT_ORDER + NON_EXTENSIBLE will cover this case.
Is it possible to add such new option? Or to add possibility to specify multiple options.

@TristanPerry
Copy link

@raderio isn't that what JSONCompareMode.STRICT offers (http://jsonassert.skyscreamer.org/apidocs/org/skyscreamer/jsonassert/JSONCompareMode.html) ?

  • Extensible = false, so all fields will have to be covered.
  • Strict order = true, so the list order is verified.

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

No branches or pull requests

2 participants