When embedding documents (non-apiplatform resources) swagger is not able to process them.
These embedded docs can be MongoDB docs for example:
/**
* @ApiResource(
* iri="https://schema.org/Product",
* )
*/
class Product {
/**
* @ApiProperty(iri="https://schema.org/offer")
*
* @var Offer
*/
protected $offer;
}
/**
* {@inheritdoc}
*/
class Offer
{
....
}
Problem:
if (!$this->resourceClassResolver->isResourceClass($className)) {
return [];
}
This will fail because Offer is not a registered api resource.
When embedding documents (non-apiplatform resources) swagger is not able to process them.
These embedded docs can be MongoDB docs for example:
Problem:
This will fail because Offer is not a registered api resource.