Commit aed681a
authored
Handle nullable array items. (#341)
Openapi represents an array of nullable items using an allOf with
exactly one reference entry (items.allOf[0].$ref), rather than the usual
items.$ref. We currently treat these types as any, which means users
have to cast or marshal and unmarshal data to the correct type. This
patch adds a check for this edge case and replaces the any with the
appropriate concrete type.
Part of #340.1 parent 1866144 commit aed681a
2 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
147 | 163 | | |
148 | 164 | | |
149 | 165 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments