Skip to content

Invalid Server URL error #154

Description

@udamir

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions