Skip to content

Commit f20632f

Browse files
Copilotswissspidy
andauthored
Handle missing run input based on input_schema presence
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 20bcbc4 commit f20632f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Ability_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function run( $args, $assoc_args ): void {
369369

370370
// Build input data (with stdin support).
371371
$input = $this->build_input_with_stdin( $assoc_args );
372-
if ( null === $input && ! empty( $ability->get_input_schema() ) ) {
372+
if ( null === $input && null !== $ability->get_meta_item( 'input_schema', null ) ) {
373373
$input = [];
374374
}
375375

0 commit comments

Comments
 (0)