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

Invalid Server URL error #154

Closed
udamir opened this issue Feb 17, 2021 · 1 comment
Closed

Invalid Server URL error #154

udamir opened this issue Feb 17, 2021 · 1 comment

Comments

@udamir
Copy link

udamir commented Feb 17, 2021

I don't want to put a specific url of server in OpenAPI file, as it can be used in different environments, so I use the following:

openapi: '3.0.2'
servers:
  - url: /api

On init method I get the error:

TypeError [ERR_INVALID_URL]: Invalid URL: /api
    at onParseError (internal/url.js:257:9)
    at new URL (internal/url.js:333:5)
@udamir
Copy link
Author

udamir commented Mar 8, 2021

Issue will be resolved with PR PayU/api-schema-builder#69

@udamir udamir closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant