Skip to content

OpenAPI relative server URL #99

@DemonicTutor

Description

@DemonicTutor

ServerImpl uses new URL() which does not allow for relative paths.

Version

5.0.0.CR5

Context

We deploy microservices on random ports which also serve swagger-ui individually. (eg: https://192.168.1.217:44913/api.html)

for this to work we need to be able to define swagger.yaml:

openapi: 3.0.1
info:
  title: api
servers:
  - url: /v1/api

and swagger-ui uses the current location (scheme+host+port) to execute requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions