We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Main idea is for comparator to traverse through JSON applying function with signature (T, T) -> List<Mismatch> to every method.
(T, T) -> List<Mismatch>
Conceptual code:
typealias ValueComparator = (expected: JsonNode, actual: JsonNode) -> List<ComparisonMismatch> val valueComparatorRegistry = mutableMapOf<JsonNodeType, ValueComparator>() fun compareSameTypedValueNodes(expected: JsonNode, actual: JsonNode, conflicts: MutableList<ComparisonMismatch>) { valueComparatorRegistry[expected.nodeType](expected, actual).forEach(conflicts::add) }
Comparator may also have some interface to accept configuration?
The text was updated successfully, but these errors were encountered:
saksmt
No branches or pull requests
Main idea is for comparator to traverse through JSON applying function with signature
(T, T) -> List<Mismatch>
to every method.Conceptual code:
Comparator may also have some interface to accept configuration?
The text was updated successfully, but these errors were encountered: