if (!
$this->
shouldDefinitionBeIncluded($definition)) { continue;
} $onlyReference =
$this->
shouldIncludeReferenceOnly($definition,
$forSalesChannel);
$schema =
$this->definitionSchemaBuilder->
getSchemaByDefinition($definition,
$this->
getResourceUri($definition),
$forSalesChannel,
$onlyReference);
$openApi->components->
merge($schema);
} $this->
addGeneralInformation($openApi);
$this->
addContentTypeParameter($openApi);
$data =
json_decode($openApi->
toJson(), true, 512, \JSON_THROW_ON_ERROR
);
$data['paths'
] ??=
[];
$schemaPaths =
[$this->schemaPath
];
if (!
empty($bundleName)) { $schemaPaths =
$this->bundleSchemaPathCollection->
getSchemaPaths($api,
$bundleName);
} else { $schemaPaths =
array_merge($schemaPaths,
$this->bundleSchemaPathCollection->
getSchemaPaths($api,
$bundleName));
}