diff --git a/spec/asyncapi.md b/spec/asyncapi.md
index 8f04a83c4..599cc7922 100644
--- a/spec/asyncapi.md
+++ b/spec/asyncapi.md
@@ -1438,6 +1438,7 @@ Field Name | Type | Description
---|:---|---
schemas | Map[`string`, [Schema Object](#schemaObject) \| [Reference Object](#referenceObject)] | An object to hold reusable [Schema Objects](#schemaObject).
servers | Map[`string`, [Server Object](#serverObject) \| [Reference Object](#referenceObject)] | An object to hold reusable [Server Objects](#serverObject).
+ serverVariables | Map[`string`, [Server Variable Object](#serverVariableObject) \| [Reference Object](#referenceObject)] | An object to hold reusable [Server Variable Objects](#serverVariableObject).
channels | Map[`string`, [Channel Item Object](#channelItemObject)] | An object to hold reusable [Channel Item Objects](#channelItemObject).
messages | Map[`string`, [Message Object](#messageObject) \| [Reference Object](#referenceObject)] | An object to hold reusable [Message Objects](#messageObject).
securitySchemes| Map[`string`, [Security Scheme Object](#securitySchemeObject) \| [Reference Object](#referenceObject)] | An object to hold reusable [Security Scheme Objects](#securitySchemeObject).
@@ -1497,10 +1498,28 @@ my.org.User
},
"servers": {
"development": {
- "url": "development.gigantic-server.com",
+ "url": "{stage}.gigantic-server.com:{port}",
"description": "Development server",
"protocol": "amqp",
- "protocolVersion": "0.9.1"
+ "protocolVersion": "0.9.1",
+ "variables": {
+ "stage": {
+ "$ref": "#/components/serverVariables/stage"
+ },
+ "port": {
+ "$ref": "#/components/serverVariables/port"
+ }
+ }
+ }
+ },
+ "serverVariables": {
+ "stage": {
+ "default": "demo",
+ "description": "This value is assigned by the service provider, in this example `gigantic-server.com`"
+ },
+ "port": {
+ "enum": ["8883", "8884"],
+ "default": "8883"
}
},
"channels": {
@@ -1599,10 +1618,22 @@ components:
type: string
servers:
development:
- url: development.gigantic-server.com
+ url: "{stage}.gigantic-server.com:{port}"
description: Development server
protocol: amqp
protocolVersion: 0.9.1
+ variables:
+ stage:
+ $ref: "#/components/serverVariables/stage"
+ port:
+ $ref: "#/components/serverVariables/port"
+ serverVariables:
+ stage:
+ default: demo
+ description: This value is assigned by the service provider, in this example `gigantic-server.com`
+ port:
+ enum: [8883, 8884]
+ default: 8883
channels:
user/signedup:
subscribe: