Merge pull request #5611 from julian-mp/realign-template-schema

Realign Template schema (parameters > input)
This commit is contained in:
Ben Lambert
2021-05-07 13:35:59 +02:00
committed by GitHub
5 changed files with 9 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/catalog-model': patch
---
Renamed parameters to input in template schema
+1 -1
View File
@@ -514,7 +514,7 @@ export interface TemplateEntityV1beta2 extends Entity {
id?: string;
name?: string;
action: string;
parameters?: JsonObject;
input?: JsonObject;
}>;
output?: {
[name: string]: string;
@@ -51,7 +51,7 @@ describe('templateEntityV1beta2Validator', () => {
id: 'fetch',
name: 'Fetch',
action: 'fetch:plan',
parameters: {
input: {
url: './template',
},
},
@@ -38,7 +38,7 @@ export interface TemplateEntityV1beta2 extends Entity {
id?: string;
name?: string;
action: string;
parameters?: JsonObject;
input?: JsonObject;
}>;
output?: { [name: string]: string };
};
@@ -125,7 +125,7 @@
"type": "string",
"description": "The name of the action to execute."
},
"parameters": {
"input": {
"type": "object",
"description": "A templated object describing the inputs to the action."
}