@backstage/plugin-scaffolder-backend 1.11.1-next.0 → 1.12.0-next.1

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/dist/index.cjs.js CHANGED
@@ -8,6 +8,7 @@ var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
8
8
  var yaml = require('yaml');
9
9
  var fs = require('fs-extra');
10
10
  var backendCommon = require('@backstage/backend-common');
11
+ var zod = require('zod');
11
12
  var integration = require('@backstage/integration');
12
13
  var path = require('path');
13
14
  var globby = require('globby');
@@ -36,7 +37,6 @@ var promClient = require('prom-client');
36
37
  var pluginScaffolderCommon = require('@backstage/plugin-scaffolder-common');
37
38
  var express = require('express');
38
39
  var Router = require('express-promise-router');
39
- var zod = require('zod');
40
40
  var url = require('url');
41
41
  var os = require('os');
42
42
  var pluginCatalogBackend = require('@backstage/plugin-catalog-backend');
@@ -252,24 +252,16 @@ function createCatalogWriteAction() {
252
252
  return pluginScaffolderNode.createTemplateAction({
253
253
  id: id$2,
254
254
  description: "Writes the catalog-info.yaml for your template",
255
- examples: examples$2,
256
255
  schema: {
257
- input: {
258
- type: "object",
259
- properties: {
260
- filePath: {
261
- title: "Catalog file path",
262
- description: "Defaults to catalog-info.yaml",
263
- type: "string"
264
- },
265
- entity: {
266
- title: "Entity info to write catalog-info.yaml",
267
- description: "You can provide the same values used in the Entity schema.",
268
- type: "object"
269
- }
270
- }
271
- }
256
+ input: zod.z.object({
257
+ filePath: zod.z.string().optional().describe("Defaults to catalog-info.yaml"),
258
+ // TODO: this should reference an zod entity validator if it existed.
259
+ entity: zod.z.object({}).describe(
260
+ "You can provide the same values used in the Entity schema."
261
+ )
262
+ })
272
263
  },
264
+ examples: examples$2,
273
265
  supportsDryRun: true,
274
266
  async handler(ctx) {
275
267
  ctx.logStream.write(`Writing catalog-info.yaml`);