Merge pull request #14702 from alexrybch/scaffolder-ui-options

initial support of ui options in scaffolder forms
This commit is contained in:
Ben Lambert
2022-12-19 13:29:31 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Backend now returns 'ui:options' value from template metadata, it can be used by all your custom scaffolder components.
@@ -271,6 +271,7 @@ export async function createRouter(
res.json({
title: template.metadata.title ?? template.metadata.name,
description: template.metadata.description,
'ui:options': template.metadata['ui:options'],
steps: parameters.map(schema => ({
title: schema.title ?? 'Please enter the following information',
description: schema.description,