@code-pushup/models 0.16.4 → 0.16.6

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -182,7 +182,7 @@ var auditSchema = z2.object({
182
182
  );
183
183
  var pluginAuditsSchema = z2.array(auditSchema, {
184
184
  description: "List of audits maintained in a plugin"
185
- }).refine(
185
+ }).min(1).refine(
186
186
  (auditMetadata) => !getDuplicateSlugsInAudits(auditMetadata),
187
187
  (auditMetadata) => ({
188
188
  message: duplicateSlugsInAuditsErrorMsg(auditMetadata)
@@ -501,7 +501,7 @@ var pluginReportSchema = pluginMetaSchema.merge(
501
501
  })
502
502
  ).merge(
503
503
  z12.object({
504
- audits: z12.array(auditReportSchema),
504
+ audits: z12.array(auditReportSchema).min(1),
505
505
  groups: z12.array(groupSchema).optional()
506
506
  })
507
507
  ).refine(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.16.4",
3
+ "version": "0.16.6",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "zod": "^3.22.1",