Commit 71534dd
Use order-insensitive stable stringify for Java codegen collision check
renameBrandDefinitionKeys compared schema fragments with JSON.stringify,
which is sensitive to object key order and could report false-positive
collisions (or miss real ones). Add a local key-sorted stableStringify
helper (mirroring scripts/codegen/utils.ts) and use it for the check.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2fc79f3 commit 71534dd
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
89 | 102 | | |
90 | 103 | | |
91 | 104 | | |
92 | 105 | | |
93 | | - | |
| 106 | + | |
94 | 107 | | |
95 | 108 | | |
96 | 109 | | |
| |||
0 commit comments