Commit 356c595
Fix collections of nullables not being set as nullable (#3364)
* Update to fix Lists/Arrays of nullables not getting marked as nullable
* Updated unit test to cover whether items in a array are correctly marked as nullable or not
* Update src/Swashbuckle.AspNetCore.SwaggerGen/SchemaGenerator/SchemaGenerator.cs
Co-authored-by: Martin Costello <martin@martincostello.com>
* Added some more test cases to unit tests
---------
Co-authored-by: e.kent <e.kent@omcinternational.com>
Co-authored-by: Martin Costello <martin@martincostello.com>1 parent a7112c2 commit 356c595
2 files changed
Lines changed: 18 additions & 8 deletions
File tree
- src/Swashbuckle.AspNetCore.SwaggerGen/SchemaGenerator
- test/Swashbuckle.AspNetCore.SwaggerGen.Test/SchemaGenerator
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
178 | | - | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
0 commit comments