This commit is contained in:
Guilhem Niot 2022-09-25 21:33:08 +02:00
parent 383fb78360
commit cf8635eb95
3 changed files with 7 additions and 8 deletions
Describer
Tests/Functional/Entity

@ -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