Commit 9254fd5
Remove dead code: simplify_nullable_unions feature
GoogleJsonSchemaTransformer was the only user of simplify_nullable_unions=True.
After removing it (because Google now supports type: 'null' natively), this feature
became completely unused, causing coverage to drop to 99.97%.
Removed:
- simplify_nullable_unions parameter from JsonSchemaTransformer.__init__
- self.simplify_nullable_unions assignment
- Conditional call to _simplify_nullable_union() in _handle_union()
- Entire _simplify_nullable_union() static method (18 lines)
Verified no other references exist in the codebase.
This restores 100% test coverage.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent db5968a commit 9254fd5
1 file changed
+0
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 147 | | |
154 | 148 | | |
155 | 149 | | |
| |||
159 | 153 | | |
160 | 154 | | |
161 | 155 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 156 | | |
183 | 157 | | |
184 | 158 | | |
| |||
0 commit comments