Skip to content

Commit

Permalink
Merge ad17f0a into 51573a3
Browse files Browse the repository at this point in the history
  • Loading branch information
vyacheslav-startsev committed Jul 10, 2020
2 parents 51573a3 + ad17f0a commit 40a9f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions features/bootstrap/DoctrineContext.php
Expand Up @@ -121,7 +121,6 @@
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\MaxDepthDummy;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\NetworkPathDummy;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\NetworkPathRelationDummy;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Node;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Order;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\Person;
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\PersonToPet;
Expand Down Expand Up @@ -1542,7 +1541,7 @@ public function thereAreDummyMercureObjects(int $nb)
{
for ($i = 1; $i <= $nb; ++$i) {
$relatedDummy = $this->buildRelatedDummy();
$relatedDummy->setName('RelatedDummy #' . $i);
$relatedDummy->setName('RelatedDummy #'.$i);

$dummyMercure = $this->buildDummyMercure();
$dummyMercure->name = "Dummy Mercure #$i";
Expand Down Expand Up @@ -1974,7 +1973,6 @@ private function buildConvertedRelated()
private function buildDummyMercure()
{
return $this->isOrm() ? new DummyMercure() : new DummyMercureDocument();

}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/JsonSchema/Command/JsonSchemaGenerateCommand.php
Expand Up @@ -31,6 +31,8 @@
*/
final class JsonSchemaGenerateCommand extends Command
{
protected static $defaultName = 'api:json-schema:generate';

private $schemaFactory;
private $formats;

Expand All @@ -48,7 +50,6 @@ public function __construct(SchemaFactoryInterface $schemaFactory, array $format
protected function configure()
{
$this
->setName('api:json-schema:generate')
->setDescription('Generates the JSON Schema for a resource operation.')
->addArgument('resource', InputArgument::REQUIRED, 'The Fully Qualified Class Name (FQCN) of the resource')
->addOption('itemOperation', null, InputOption::VALUE_REQUIRED, 'The item operation')
Expand Down

0 comments on commit 40a9f4e

Please sign in to comment.