Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): v6.1.0 #465

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/specs",
"version": "6.0.0",
"version": "6.1.0",
"description": "AsyncAPI schema versions",
"main": "index.js",
"types": "index.d.ts",
Expand Down
186 changes: 100 additions & 86 deletions schemas/3.0.0-without-$id.json
Original file line number Diff line number Diff line change
Expand Up @@ -1207,45 +1207,6 @@
}
]
},
"mqtt5": {
"properties": {
"bindingVersion": {
"enum": [
"0.2.0"
]
}
},
"allOf": [
{
"description": "If no bindingVersion specified, use the latest binding",
"if": {
"not": {
"required": [
"bindingVersion"
]
}
},
"then": {
"$ref": "#/definitions/bindings-mqtt5-0.2.0-server"
}
},
{
"if": {
"required": [
"bindingVersion"
],
"properties": {
"bindingVersion": {
"const": "0.2.0"
}
}
},
"then": {
"$ref": "#/definitions/bindings-mqtt5-0.2.0-server"
}
}
]
},
"kafka": {
"properties": {
"bindingVersion": {
Expand Down Expand Up @@ -1483,7 +1444,7 @@
}
},
"bindings-mqtt-0.2.0-server": {
"title": "MQTT server bindings object",
"title": "Server Schema",
"description": "This object contains information about the server representation in MQTT.",
"type": "object",
"additionalProperties": false,
Expand All @@ -1499,7 +1460,7 @@
},
"cleanSession": {
"type": "boolean",
"description": "Whether to create a persistent connection or not. When 'false', the connection will be persistent."
"description": "Whether to create a persistent connection or not. When 'false', the connection will be persistent. This is called clean start in MQTTv5."
},
"lastWill": {
"type": "object",
Expand Down Expand Up @@ -1532,40 +1493,6 @@
"type": "integer",
"description": "Interval in seconds of the longest period of time the broker and the client can endure without sending a message."
},
"bindingVersion": {
"type": "string",
"enum": [
"0.2.0"
],
"description": "The version of this binding. If omitted, 'latest' MUST be assumed."
}
},
"examples": [
{
"clientId": "guest",
"cleanSession": true,
"lastWill": {
"topic": "/last-wills",
"qos": 2,
"message": "Guest gone offline.",
"retain": false
},
"keepAlive": 60,
"bindingVersion": "0.2.0"
}
]
},
"bindings-mqtt5-0.2.0-server": {
"title": "Server Schema",
"description": "This object contains information about the server representation in MQTT5.",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "#/definitions/specificationExtension"
}
},
"properties": {
"sessionExpiryInterval": {
"oneOf": [
{
Expand All @@ -1579,7 +1506,23 @@
"$ref": "#/definitions/Reference"
}
],
"description": "Session Expiry Interval in seconds or a Schema Object containing the definition of the interval."
"description": "Interval time in seconds or a Schema Object containing the definition of the interval. The broker maintains a session for a disconnected client until this interval expires."
},
"maximumPacketSize": {
"oneOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 4294967295
},
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/Reference"
}
],
"description": "Number of bytes or a Schema Object representing the Maximum Packet Size the Client is willing to accept."
},
"bindingVersion": {
"type": "string",
Expand All @@ -1591,14 +1534,17 @@
},
"examples": [
{
"sessionExpiryInterval": 60,
"bindingVersion": "0.2.0"
},
{
"sessionExpiryInterval": {
"type": "integer",
"minimum": 100
"clientId": "guest",
"cleanSession": true,
"lastWill": {
"topic": "/last-wills",
"qos": 2,
"message": "Guest gone offline.",
"retain": false
},
"keepAlive": 60,
"sessionExpiryInterval": 120,
"maximumPacketSize": 1024,
"bindingVersion": "0.2.0"
}
]
Expand Down Expand Up @@ -3633,7 +3579,6 @@
}
]
},
"mqtt5": {},
"kafka": {
"properties": {
"bindingVersion": {
Expand Down Expand Up @@ -3939,6 +3884,46 @@
}
},
"properties": {
"payloadFormatIndicator": {
"type": "integer",
"enum": [
0,
1
],
"description": "1 indicates that the payload is UTF-8 encoded character data. 0 indicates that the payload format is unspecified.",
"default": 0
},
"correlationData": {
"oneOf": [
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/Reference"
}
],
"description": "Correlation Data is used by the sender of the request message to identify which request the response message is for when it is received."
},
"contentType": {
"type": "string",
"description": "String describing the content type of the message payload. This should not conflict with the contentType field of the associated AsyncAPI Message object."
},
"responseTopic": {
"oneOf": [
{
"type": "string",
"format": "uri-template",
"minLength": 1
},
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/Reference"
}
],
"description": "The topic (channel URI) to be used for a response message."
},
"bindingVersion": {
"type": "string",
"enum": [
Expand All @@ -3950,6 +3935,15 @@
"examples": [
{
"bindingVersion": "0.2.0"
},
{
"contentType": "application/json",
"correlationData": {
"type": "string",
"format": "uuid"
},
"responseTopic": "application/responses",
"bindingVersion": "0.2.0"
}
]
},
Expand Down Expand Up @@ -4607,7 +4601,6 @@
},
"amqp1": {},
"mqtt": {},
"mqtt5": {},
"kafka": {
"properties": {
"bindingVersion": {
Expand Down Expand Up @@ -6528,7 +6521,6 @@
}
]
},
"mqtt5": {},
"kafka": {
"properties": {
"bindingVersion": {
Expand Down Expand Up @@ -6938,12 +6930,33 @@
"properties": {
"qos": {
"type": "integer",
"enum": [
0,
1,
2
],
"description": "Defines the Quality of Service (QoS) levels for the message flow between client and server. Its value MUST be either 0 (At most once delivery), 1 (At least once delivery), or 2 (Exactly once delivery)."
},
"retain": {
"type": "boolean",
"description": "Whether the broker should retain the message or not."
},
"messageExpiryInterval": {
"oneOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/Reference"
}
],
"description": "Lifetime of the message in seconds"
},
"bindingVersion": {
"type": "string",
"enum": [
Expand All @@ -6956,6 +6969,7 @@
{
"qos": 2,
"retain": true,
"messageExpiryInterval": 60,
"bindingVersion": "0.2.0"
}
]
Expand Down
Loading