hyperswitch
fbe10d06 - fix(deja): make config-purity canonicalizer HashMap-order-independent

Commit
1 day ago
fix(deja): make config-purity canonicalizer HashMap-order-independent The feature-off purity test canonicalizes the Settings Debug dump before comparing, but only recursed into `{`/`[` blocks and only sorted `field: {` maps — so newtype-wrapped maps (e.g. `supported_payment_methods: SupportedPaymentMethodsForMandate({...})`) leaked nondeterministic HashMap iteration order and the two parses compared unequal even though the injected [deja] tables were correctly ignored. Recurse into `( ... )` too and sort the entries of every `{ ... }` block (arrays keep order). The purity property itself was already correct; this makes the test deterministic. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
Parents
Loading