Skip to content

Relative URL in $.servers.url treated as an error #35

@karelhusa

Description

@karelhusa

Relative URLs in OpenAPI 3

Servers declaration in OpenAPI 3 allows setting relative paths, see https://swagger.io/docs/specification/api-host-and-base-path/ .

Though, in the security audit, it's treated as a problem:
The url property '/relative/path' of the Server object must be an absolute URL

Relative URL should not be considered an security issue, especially in API design time. Or, is there any reason for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions