Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Conversation

@VitaliyT825
Copy link

No description provided.


$builder = new OpenApiResolverBuilder(
new \ArrayObject(),
new \ArrayObject([new NumberMinimumValidator(), new NumberMaximumValidator()]),
Copy link

@iskripka iskripka Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынести \ArrayObject в импорт во все местах

$this->expectException(RuntimeException::class);
ParameterCollectionFormatEnum::getDelimiter('_undefined_');
}
} No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пустая строка

'class',
]);
}
} No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пустая строка

'string',
]);
}
} No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пустая строка

$fieldType = 'string';

$builder = new OpenApiResolverBuilder(
new \ArrayObject(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вынести в use

/**
* @var ArrayMaxItemsValidator
*/
private $sut;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему sut? похож на validator
строгая типизация вместо аннотации

/**
* @var ArrayMinItemsValidator
*/
private $sut;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично

use OpenApi\Annotations\Property;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
use function str_repeat;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пустая строка перед use function

use OpenApi\Annotations as OA;

/**
* @OA\Schema(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А эти моки где нибудь используются? не нашел тест на них

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants