Commit 635c0ad
504 - Fix additionalProperties on object type (#523)
As stated in the documentation:
https://swagger.io/docs/specification/data-models/dictionaries/
Freeform objects (objects with any value) can be defined by setting
additionalProperties either to true or {}. Previously:
foo?: { [key: string]: { [key: string]: any } }
was the output instead of:
foo?: { [key: string]: any }
This is fixed and tested with this PR.
Co-authored-by: fabio.wanner <fabio.wanner@m-f.ch>1 parent 39b8982 commit 635c0ad
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| |||
0 commit comments