@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder': patch
|
||||
---
|
||||
|
||||
Added a default type when is not defined in the schema to prevent id collision
|
||||
@@ -63,6 +63,7 @@ function extractUiSchema(schema: JsonObject, uiSchema: JsonObject) {
|
||||
export function transformSchemaToProps(
|
||||
inputSchema: JsonObject,
|
||||
): { schema: FormProps<any>['schema']; uiSchema: FormProps<any>['uiSchema'] } {
|
||||
inputSchema.type = inputSchema.type || 'object';
|
||||
const schema = JSON.parse(JSON.stringify(inputSchema));
|
||||
delete schema.title; // Rendered separately
|
||||
const uiSchema = {};
|
||||
|
||||
Reference in New Issue
Block a user