You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Hi. We have a repo where multiple developers are working on the same project. In the same repo result of fragment-matcher is saved to .json and committed. The thing that happens is that every time somebody generates this file, values in possible type arrays are sorted differently. I.e.
Have an option to sort values in possible type arrays alphabetical.
This shouldn't be hard to do. We just need to add .sort() in this file. I can create MR if you approve of this, but I need to know will this be optional feature, and how would opt in look like in config file.
The text was updated successfully, but these errors were encountered:
This exposes a new plugin option `deterministic` that when enabled will
ensure that the fragment matcher will always return the same result for
the same schema, no matter the order it is in the schema.
It does this by sorting the results so that they are always in the same
order.
The default is `false` to maintain backwards compatibility.
This fixesdotansimha#7367
Is your feature request related to a problem? Please describe.
Hi. We have a repo where multiple developers are working on the same project. In the same repo result of
fragment-matcher
is saved to.json
and committed. The thing that happens is that every time somebody generates this file, values in possible type arrays are sorted differently. I.e.Describe the solution you'd like
Have an option to sort values in possible type arrays alphabetical.
This shouldn't be hard to do. We just need to add
.sort()
in this file. I can create MR if you approve of this, but I need to know will this be optional feature, and how would opt in look like in config file.The text was updated successfully, but these errors were encountered: