We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c95ebb commit 5fc2705Copy full SHA for 5fc2705
src/Convertor.js
@@ -93,6 +93,16 @@ class Convertor {
93
}
94
95
96
+ const convertItemArrays = () => {
97
+ if (Array.isArray(schema.items)) {
98
+ const obj = {}
99
+ for (const item of schema.items) {
100
+ Object.assign(obj, item)
101
+ }
102
+ schema.items = obj
103
104
105
+
106
const convertDefaultValues = () => {
107
if (schema.type === 'boolean') {
108
if (schema.default === 'true' || schema.default === 'false') {
@@ -139,6 +149,7 @@ class Convertor {
139
149
140
150
convertNull()
141
151
convertTypeArrays()
152
+ convertItemArrays()
142
153
bannedWordsRemoval()
143
154
convertDefaultValues()
144
155
defaultValuesForOfProperties()
0 commit comments