@tim-smart/openapi-gen 0.4.6 → 0.4.7
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.
- package/main.js +2 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -35120,7 +35120,7 @@ var make64 = gen2(function* () {
|
|
|
35120
35120
|
return some2(transformer.onBoolean({ importName }));
|
|
35121
35121
|
}
|
|
35122
35122
|
case "array": {
|
|
35123
|
-
const nonEmpty = typeof schema.minItems === "number" && schema.minItems
|
|
35123
|
+
const nonEmpty = typeof schema.minItems === "number" && schema.minItems > 0;
|
|
35124
35124
|
return toSource(
|
|
35125
35125
|
importName,
|
|
35126
35126
|
itemsSchema(schema.items),
|
|
@@ -35260,7 +35260,7 @@ var layerTransformerSchema = sync6(JsonSchemaTransformer, () => {
|
|
|
35260
35260
|
},
|
|
35261
35261
|
onArray({ importName, schema, item, nonEmpty }) {
|
|
35262
35262
|
const modifiers = [];
|
|
35263
|
-
if ("minItems" in schema &&
|
|
35263
|
+
if ("minItems" in schema && nonEmpty) {
|
|
35264
35264
|
modifiers.push(`${importName}.minItems(${schema.minItems})`);
|
|
35265
35265
|
}
|
|
35266
35266
|
if ("maxItems" in schema) {
|