@amritk/helpers 0.15.2 → 0.15.3
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.
|
@@ -159,8 +159,8 @@ const patternPropertiesRecordType = (patternProperties, options) => {
|
|
|
159
159
|
const getTuplePositions = (schema) => {
|
|
160
160
|
const record = schema;
|
|
161
161
|
const prefixItems = record["prefixItems"];
|
|
162
|
-
if (Array.isArray(prefixItems)
|
|
163
|
-
return prefixItems;
|
|
162
|
+
if (Array.isArray(prefixItems))
|
|
163
|
+
return prefixItems.length > 0 ? prefixItems : void 0;
|
|
164
164
|
if (Array.isArray(schema.items) && schema.items.length > 0)
|
|
165
165
|
return schema.items;
|
|
166
166
|
return void 0;
|