quicktype-core 23.0.98 → 23.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -670,7 +670,7 @@ function addTypesInSchema(resolver, typeBuilder, references, attributeProducers)
|
|
|
670
670
|
const itemsLoc = loc.push("items");
|
|
671
671
|
itemType = yield toType(checkJSONSchema(items, itemsLoc.canonicalRef), itemsLoc, singularAttributes);
|
|
672
672
|
}
|
|
673
|
-
else if (items !== undefined) {
|
|
673
|
+
else if (items !== undefined && items !== true) {
|
|
674
674
|
return (0, Messages_1.messageError)("SchemaArrayItemsMustBeStringOrArray", withRef(loc, { actual: items }));
|
|
675
675
|
}
|
|
676
676
|
else {
|