You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->setDescription('Generates the JSON Schema for a resource operation.')
59
57
->addArgument('resource', InputArgument::REQUIRED, 'The Fully Qualified Class Name (FQCN) of the resource')
60
-
->addOption('itemOperation', null, InputOption::VALUE_REQUIRED, 'The item operation')
61
-
->addOption('collectionOperation', null, InputOption::VALUE_REQUIRED, 'The collection operation')
58
+
->addOption('operation', null, InputOption::VALUE_REQUIRED, 'The operation name')
62
59
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The response format', (string) $this->formats[0])
63
60
->addOption('type', null, InputOption::VALUE_REQUIRED, sprintf('The type of schema to generate (%s or %s)', Schema::TYPE_INPUT, Schema::TYPE_OUTPUT), Schema::TYPE_INPUT);
64
61
}
@@ -72,10 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
@@ -91,30 +85,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
91
85
thrownewInvalidOptionException(sprintf('The response format "%s" is not supported. Supported formats are : %s.', $format, implode(', ', $this->formats)));
$this->assertStringStartsWith('[ERROR] You can only use one of "--itemOperation" and "--collectionOperation" options at the same time.', trim(preg_replace('/\s+/', '', $this->tester->getDisplay())));
0 commit comments