Skip to content

Commit 32c0035

Browse files
committed
Blueprints: Make zipFile optional in the unzip Blueprint step
1 parent 150b204 commit 32c0035

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/playground/blueprints/public/blueprint-schema.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,16 +1026,21 @@
10261026
"type": "string",
10271027
"const": "unzip"
10281028
},
1029+
"zipFile": {
1030+
"$ref": "#/definitions/FileReference",
1031+
"description": "The zip file to extract"
1032+
},
10291033
"zipPath": {
10301034
"type": "string",
1031-
"description": "The zip file to extract"
1035+
"description": "The path of the zip file to extract",
1036+
"deprecated": "Use zipFile instead."
10321037
},
10331038
"extractToPath": {
10341039
"type": "string",
10351040
"description": "The path to extract the zip file to"
10361041
}
10371042
},
1038-
"required": ["extractToPath", "step", "zipPath"]
1043+
"required": ["extractToPath", "step"]
10391044
},
10401045
{
10411046
"type": "object",
@@ -1263,6 +1268,10 @@
12631268
"code": {
12641269
"type": "string",
12651270
"description": "The code snippet to eval instead of a php file."
1271+
},
1272+
"throwOnError": {
1273+
"type": "boolean",
1274+
"description": "Whether to throw an error if the PHP process exits with a non-zero code or outputs to stderr."
12661275
}
12671276
},
12681277
"additionalProperties": false

packages/playground/blueprints/src/lib/steps/unzip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { runPhpWithZipFunctions } from '../utils/run-php-with-zip-functions';
2020
export interface UnzipStep<ResourceType> {
2121
step: 'unzip';
2222
/** The zip file to extract */
23-
zipFile: ResourceType;
23+
zipFile?: ResourceType;
2424
/**
2525
* The path of the zip file to extract
2626
* @deprecated Use zipFile instead.

0 commit comments

Comments
 (0)