We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaca7a commit f018bc9Copy full SHA for f018bc9
src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php
@@ -36,7 +36,7 @@ private function getServerUrl(ServerRequestInterface $request): string
36
public function build(ServerRequestInterface $request): OpenApiDefinition
37
{
38
$this->openapi->set("openapi", "3.0.0");
39
- if (!$this->openapi->has("servers") && isset($_SERVER['REQUEST_URI'])) {
+ if (!$this->openapi->has("servers")) {
40
$this->openapi->set("servers|0|url", $this->getServerUrl($request));
41
}
42
if ($this->records) {
0 commit comments