Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathfinder does not work when there are variables in the server url #240

Open
mjphaynes opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@mjphaynes
Copy link

I came across this when using the eBay OpenAPI spec, see: https://developer.ebay.com/api-docs/sell/inventory/resources/methods

The server url has the following format:

{
  "servers": [
    {
      "url": "https://api.ebay.com{basePath}",
      "description": "Production",
      "variables": {
        "basePath": {
          "default": "/sell/inventory/v1"
        }
      }
    }
  ],
}

But the code to get the server url does not replace the variables:

rtrim((string) parse_url($server->url, PHP_URL_PATH), '/'),

So end up with the error: OpenAPI spec contains no such operation [/sell/inventory/v1/inventory_item/sku]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant