Skip .patch schemas from api spec

This commit is contained in:
2024-07-25 11:40:38 +02:00
parent 77c4f8325f
commit ededee44cf
+5
View File
@@ -113,9 +113,14 @@ class OpenApiFactory implements OpenApiFactoryInterface
$tags = [];
foreach ($openApi->getComponents()->getSchemas() as $name => $schema) {
if (\preg_match('/.*\.patch/', $name)) {
continue;
}
if (\preg_match('/.*\.jsonld/', $name)) {
continue;
}
if (empty($schema['description'])) {
continue;
}