You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -162,9 +164,9 @@ password | `string` | `password` | Used to hint UIs the input needs to be obscur
162
164
### <aname="relativeReferences"></a>Relative References in URLs
163
165
164
166
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-4.2).
165
-
Relative references are resolved using the URLs defined in the [Servers array](#servers) as a Base URI.
167
+
Relative references are resolved using the URLs defined in the [`Server Object`](#serverObject) as a Base URI.
166
168
167
-
Relative references used in $ref are processed as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03), i.e. using the URL of the current document as the base URI.
169
+
Relative references used in `$ref` are processed as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03), i.e. using the URL of the current document as the base URI. See also the [Reference Object](#referenceObject).
168
170
169
171
### Schema
170
172
@@ -317,9 +319,9 @@ An object representing a Server.
317
319
318
320
Field Name | Type | Description
319
321
---|:---:|---
320
-
<a name="serverUrlTemplate"></a>url | `string` | A absolute URL to the target host. This URL supports template variables and may be relative, to indicate that the host ___location is relative to the ___location where the OpenAPI Specification is being served. Templates are _optional_ and specified by the [Host Template Parameter](#hostTemplateParameter) syntax. Template substitutions will be made when a variable is named in `{`brackets`}`.
321
-
<a name="hostDescription"></a>description | `string` | An optional string describing the host designated by the URL.
322
-
<a name="hostTemplates"></a>templates | [Templates Object](#hostTemplatesObject) | An object holding templates for substitution in the URL template
322
+
<a name="serverUrl"></a>url | `string` | 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 OpenAPI definition is being served. Variable substitutions will be made when a variable is named in `{`brackets`}`.
323
+
<a name="serverDescription"></a>description | `string` | An optional string describing the host designated by the URL.
324
+
<a name="serverVariables"></a>variables | [Server Variables Object](#serverVariablesObject) | An object holding variables for substitution in the URL template.
323
325
324
326
This object can be extended with [Specification Extensions](#specificationExtensions).
325
327
@@ -344,13 +346,13 @@ servers:
344
346
description: Production server
345
347
```
346
348
347
-
The following shows how templates can be used for a server configuration:
349
+
The following shows how variables can be used for a server configuration:
<a name="variable"></a> [variable name] | [Host Template Parameter](#hostTemplateParameter) | A parameter to be used for substitution in the URL template.
376
+
<a name="serverVariablesName"></a> {name} | [Server Variable Object](#serverVariableObject) | A variable to be used for substitution in a Server's URL template.
375
377
376
378
This object can be extended with [Specification Extensions](#specificationExtensions).
An object representing a Server Variable for server URL template substituion.
382
384
383
385
Field Name | Type | Description
384
386
---|:---:|---
385
-
enum | [Possible Values] | An enumeration of primitive type values to be used if the substitution options are from a limited set.
386
-
default | [Default Value] | **Required.** The default value to use for substitution if an alternate value is not specified, and will be sent if an alternative value is _not_ supplied.
387
-
description | `string` | An optional description for the template parameter
387
+
<a name="serverVariableEnum"></a>enum | [`primitive` ] | An enumeration of primitive type values to be used if the substitution options are from a limited set.
388
+
<a name="serverVariableDefault"></a>default | `primitive` | **Required.** The default value to use for substitution if an alternate value is not specified, and will be sent if an alternative value is _not_ supplied. Unlike the [Schema Object's](#schemaObject) `default`, this value MUST be provided by the consumer.
389
+
<a name="serverVariableDescription"></a>description | `string` | An optional description for the server variable.
388
390
389
391
This object can be extended with [Specification Extensions](#specificationExtensions).
390
392
@@ -580,8 +582,7 @@ components:
580
582
#### <a name="pathsObject"></a>Paths Object
581
583
582
584
Holds the relative paths to the individual endpoints and their operations.
583
-
The path is appended to the URL from the [`Server Object`](#serverObject) in order to construct
584
-
the full URL. The Paths MAY be empty, due to [ACL constraints](#securityFiltering).
585
+
The path is appended to the URL from the [`Server Object`](#serverObject) in order to construct the full URL. The Paths MAY be empty, due to [ACL constraints](#securityFiltering).
0 commit comments