Guides
Tutorials
Generates an OpenAPI v3 specification.
class ApiPlatform\OpenApi\Serializer\OpenApiNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated)
public normalize($object, null|string $format, array $context): array
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
}
class ApiPlatform\OpenApi\Serializer\OpenApiNormalizer implements Symfony\Component\Serializer\Normalizer\NormalizerInterface, Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated)
public normalize($object, null|string $format, array $context): array
public supportsNormalization($data, null|string $format, array $context): bool
public hasCacheableSupportsMethod(): bool
}
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated)
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $decorated)
decorated | Symfony\Component\Serializer\Normalizer\NormalizerInterface |
Normalizes an object into a set of arrays/scalars.
public normalize($object, null|string $format, array $context): array
public normalize($object, null|string $format, array $context): array
object | ||
format | string | |
context | array |
array
Checks whether the given class is supported for normalization by this normalizer.
public supportsNormalization($data, null|string $format, array $context): bool
public supportsNormalization($data, null|string $format, array $context): bool
data | ||
format | string | |
context | array |
bool
public hasCacheableSupportsMethod(): bool
public hasCacheableSupportsMethod(): bool
bool