-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: solace add per operation fields (#487)
- Loading branch information
1 parent
4021e8e
commit f4c3085
Showing
6 changed files
with
210 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "http://asyncapi.com/bindings/solace/0.4.0/operation.json", | ||
"title": "Solace operation bindings object", | ||
"description": "This object contains information about the operation representation in Solace.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"bindingVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"0.4.0" | ||
], | ||
"description": "The version of this binding. If omitted, \"latest\" MUST be assumed." | ||
}, | ||
"destinations": { | ||
"description": "The list of Solace destinations referenced in the operation.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"deliveryMode": { | ||
"type": "string", | ||
"enum": [ | ||
"direct", | ||
"persistent" | ||
] | ||
} | ||
}, | ||
"oneOf": [ | ||
{ | ||
"properties": { | ||
"destinationType": { | ||
"type": "string", | ||
"const": "queue", | ||
"description": "If the type is queue, then the subscriber can bind to the queue. The queue subscribes to the given topicSubscriptions. If no topicSubscriptions are provied, the queue will subscribe to the topic as represented by the channel name." | ||
}, | ||
"queue": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the queue" | ||
}, | ||
"topicSubscriptions": { | ||
"type": "array", | ||
"description": "The list of topics that the queue subscribes to.", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"accessType": { | ||
"type": "string", | ||
"enum": [ | ||
"exclusive", | ||
"nonexclusive" | ||
] | ||
}, | ||
"maxTtl": { | ||
"type": "string", | ||
"description": "The maximum TTL to apply to messages to be spooled." | ||
}, | ||
"maxMsgSpoolUsage": { | ||
"type": "string", | ||
"description": "The maximum amount of message spool that the given queue may use" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"properties": { | ||
"destinationType": { | ||
"type": "string", | ||
"const": "topic", | ||
"description": "If the type is topic, then the subscriber subscribes to the given topicSubscriptions. If no topicSubscriptions are provided, the client will subscribe to the topic as represented by the channel name." | ||
}, | ||
"topicSubscriptions": { | ||
"type": "array", | ||
"description": "The list of topics that the client subscribes to.", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"timeToLive": { | ||
"type": "integer", | ||
"description": "Interval in milliseconds or a Schema Object containing the definition of the lifetime of the message." | ||
}, | ||
"priority": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 255, | ||
"description": "The valid priority value range is 0-255 with 0 as the lowest priority and 255 as the highest or a Schema Object containing the definition of the priority." | ||
}, | ||
"dmqEligible": { | ||
"type": "boolean", | ||
"description": "Set the message to be eligible to be moved to a Dead Message Queue. The default value is false." | ||
} | ||
}, | ||
"examples": [ | ||
{ | ||
"bindingVersion": "0.4.0", | ||
"destinations": [ | ||
{ | ||
"destinationType": "queue", | ||
"queue": { | ||
"name": "sampleQueue", | ||
"topicSubscriptions": [ | ||
"samples/*" | ||
], | ||
"accessType": "nonexclusive" | ||
} | ||
}, | ||
{ | ||
"destinationType": "topic", | ||
"topicSubscriptions": [ | ||
"samples/*" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "http://asyncapi.com/bindings/solace/0.4.0/server.json", | ||
"title": "Solace server bindings object", | ||
"description": "This object contains server connection information about the Solace broker. This object contains additional connectivity information not possible to represent within the core AsyncAPI specification.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
"^x-[\\w\\d\\.\\x2d_]+$": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" | ||
} | ||
}, | ||
"properties": { | ||
"msgVpn": { | ||
"type": "string", | ||
"description": "The name of the Virtual Private Network to connect to on the Solace broker." | ||
}, | ||
"clientName": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 160, | ||
"description": "A unique client name to use to register to the appliance. If specified, it must be a valid Topic name, and a maximum of 160 bytes in length when encoded as UTF-8." | ||
}, | ||
"bindingVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"0.4.0" | ||
], | ||
"description": "The version of this binding." | ||
} | ||
}, | ||
"examples": [ | ||
{ | ||
"msgVpn": "ProdVPN", | ||
"bindingVersion": "0.4.0" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters