mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-11 18:16:13 +03:00
Fix CS
This commit is contained in:
parent
383fb78360
commit
cf8635eb95
@ -11,9 +11,8 @@
|
||||
|
||||
namespace Nelmio\ApiDocBundle\Describer;
|
||||
|
||||
use ApiPlatform\Documentation\DocumentationInterface;
|
||||
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer;
|
||||
use ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface;
|
||||
use ApiPlatform\Documentation\DocumentationInterface;
|
||||
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
|
||||
final class ApiPlatformDescriber extends ExternalDocDescriber
|
||||
|
@ -17,4 +17,4 @@ if (!class_exists(ApiProperty::class)) {
|
||||
class_alias(Dummy81::class, Dummy::class);
|
||||
} else {
|
||||
class_alias(Dummy71::class, Dummy::class);
|
||||
}
|
||||
}
|
||||
|
@ -23,11 +23,11 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
*/
|
||||
#[
|
||||
ApiResource(
|
||||
shortName: "Dummy",
|
||||
shortName: 'Dummy',
|
||||
operations: [
|
||||
new Get(name: "get"),
|
||||
new Get(name: "custom2", uriTemplate: "/foo"),
|
||||
new Post(name: "custom", uriTemplate: "/foo"),
|
||||
new Get(name: 'get'),
|
||||
new Get(name: 'custom2', uriTemplate: '/foo'),
|
||||
new Post(name: 'custom', uriTemplate: '/foo'),
|
||||
new GetCollection(),
|
||||
],
|
||||
)
|
||||
@ -44,7 +44,7 @@ class Dummy81
|
||||
*
|
||||
* @Assert\NotBlank
|
||||
*/
|
||||
#[ApiProperty(iris: ["http://schema.org/name"])]
|
||||
#[ApiProperty(iris: ['http://schema.org/name'])]
|
||||
private $name;
|
||||
|
||||
public function getId(): int
|
||||
|
Loading…
x
Reference in New Issue
Block a user