Server

class Server(d: dict[str, Any] = None, url: str = None, description: str = None, variables: dict[str, ServerVariable] = None)

An object representing a Server.

property url: str

REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}.

property description: str | None

An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.

property variables: dict[str, ServerVariable] | None

A map between a variable name and its value. The value is used for substitution in the server’s URL template.