-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathNo-Yelling-Processor.yaml
95 lines (94 loc) · 2.58 KB
/
No-Yelling-Processor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
components:
schemas:
Tweet:
type: "object"
properties:
hashtags:
type: "array"
title: "The Hashtags Schema"
items:
default: ""
examples:
- "#E6000"
pattern: "^(.*)$"
type: "string"
title: "The Items Schema"
text:
default: ""
examples:
- "I.absolutely.hate.my.#E6000.car..Period.."
pattern: "^(.*)$"
type: "string"
title: "The Text Schema"
userMentions:
type: "array"
items:
default: ""
type: "string"
title: "The Usermentions Schema"
uuid:
default: ""
examples:
- "c963c37e-9ac2-44ec-9428-8f6481c941b7"
pattern: "^(.*)$"
type: "string"
title: "The Uuid Schema"
timestamp:
default: ""
examples:
- "2019-05-14T14:21:01.909+0000"
pattern: "^(.*)$"
format: "date-time"
type: "string"
title: "The Timestamp Schema"
username:
default: ""
examples:
- "HipHeinz"
pattern: "^(.*)$"
type: "string"
title: "The Username Schema"
messages:
NoYelling:
headers: {}
payload:
$ref: "#/components/schemas/Tweet"
name: "NoYelling"
description: "People seem to be yelling about our cars... maybe we should make\
\ things more civil"
title: "No-Yelling"
NoNewFeatureIdea:
headers: {}
payload:
$ref: "#/components/schemas/Tweet"
name: "NoNewFeatureIdea"
description: "This event represent a tweet that contains no new ideas that my\
\ boss could steal. "
title: "No-New-Feature-Idea"
channels:
tweets/stream/nofeatures:
subscribe:
message:
$ref: "#/components/messages/NoNewFeatureIdea"
tweets/stream/nofeatures/noyelling:
publish:
message:
$ref: "#/components/messages/NoYelling"
asyncapi: "2.0.0-rc1"
id: "urn:com:smartylighting:streetlights:server"
info:
description: "Converts \"yelling\" aka upper case messages to lowercase"
title: "NoYellingProcessor"
version: "1"
servers:
url: vmr-mr8v6yiwieih.messaging.solace.cloud:20160
protocol: smf
description: Test broker
baseChannel:
variables:
port:
description: Secure connection (TLS) is available through port 8883.
default: '20160'
enum:
- '20160'