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
Copy file name to clipboardExpand all lines: src/JsonSchema/Command/JsonSchemaGenerateCommand.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ protected function configure()
53
53
->addOption('itemOperation', null, InputOption::VALUE_REQUIRED, 'The item operation')
54
54
->addOption('collectionOperation', null, InputOption::VALUE_REQUIRED, 'The collection operation')
55
55
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The response format', (string) $this->formats[0])
56
-
->addOption('type', null, InputOption::VALUE_REQUIRED, 'Use this option to set the type of output', 'input');
56
+
->addOption('type', null, InputOption::VALUE_REQUIRED, 'The type of schema to generate (input or output)', 'input');
57
57
}
58
58
59
59
/**
@@ -81,7 +81,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
81
81
}
82
82
83
83
if (!\in_array($format, $this->formats, true)) {
84
-
thrownewInvalidOptionException(sprintf('The response format "%s" is not supported. Supported formats are : %s.', $format, (string) implode(', ', $this->formats)));
84
+
thrownewInvalidOptionException(sprintf('The response format "%s" is not supported. Supported formats are : %s.', $format, implode(', ', $this->formats)));
$this->assertStringContainsString('[ERROR] You can only use one of "--itemOperation" and "--collectionOperation" options at the same time.', $this->tester->getDisplay());
71
+
$this->assertStringStartsWith('[ERROR] You can only use one of "--itemOperation" and "--collectionOperation"', trim(str_replace(["\r", "\n"], '', $this->tester->getDisplay())));
0 commit comments