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

feat: json schemas for bindings #60

Merged
merged 32 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7f66c46
Schema for amqp added.
KhudaDad414 Apr 18, 2021
a2f98be
moved schemas inside the folder.
KhudaDad414 Apr 20, 2021
a32f639
schema names changed.
KhudaDad414 Apr 20, 2021
c00b43a
http json schema added.
KhudaDad414 Apr 20, 2021
d7f34f8
schema object reference added.
KhudaDad414 Apr 20, 2021
f434741
ibmmq json schema added.
KhudaDad414 Apr 21, 2021
3031e71
kafka json schema added.
KhudaDad414 Apr 21, 2021
51255e6
mqtt json schema added.
KhudaDad414 Apr 23, 2021
a39c4a9
websockets json schema added.
KhudaDad414 Apr 23, 2021
7249f57
changed to draft-7
KhudaDad414 Apr 28, 2021
4dd8b87
ids added
KhudaDad414 Apr 28, 2021
221a302
used asyncapi specification instead of local definitions and draft-07…
KhudaDad414 Apr 28, 2021
e4cf8e8
final touches
KhudaDad414 Apr 28, 2021
5c187d7
conditional checks added
KhudaDad414 May 6, 2021
069854d
removed default from bindingVersion
KhudaDad414 May 8, 2021
5905fd4
defaults added
KhudaDad414 May 8, 2021
dc460c1
$ids corrected
KhudaDad414 May 8, 2021
58d3a0a
used correct file in $refs
KhudaDad414 May 8, 2021
d75caeb
added description for amqp, ibmmq, kafka and http
KhudaDad414 May 18, 2021
b9acfb6
added description for mqtt
KhudaDad414 May 19, 2021
5d9be8e
added description for Websockets
KhudaDad414 May 19, 2021
d2f26d8
added bindingVersion value
KhudaDad414 May 19, 2021
8977a5d
updated amqp schema version in README.md
KhudaDad414 May 19, 2021
908b266
added examples for amqp schemas
KhudaDad414 May 19, 2021
08c69b0
added examples for http schemas
KhudaDad414 May 20, 2021
f489a86
message binding example for ibmmq corrected
KhudaDad414 May 20, 2021
4bbb4a6
added examples for ibmmq schemas
KhudaDad414 May 20, 2021
472ca60
added examples for kafka bindings
KhudaDad414 May 20, 2021
32bdcc6
added examples for mqtt bindings
KhudaDad414 May 22, 2021
8bf0a38
added examples for websockets bindings
KhudaDad414 May 22, 2021
080769d
added required to queue.objectName
KhudaDad414 May 22, 2021
85f9116
Merge branch 'master' into json-schema-bindings
derberg May 24, 2021
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
61 changes: 61 additions & 0 deletions amqp/schema_channel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Channel Schema",
"type": "object",
"properties": {
"is": {
"type": "string",
"enum": ["queue", "routingKey"]
},
"exchange": {
"type": "object",
KhudaDad414 marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"type": {
"type": "string",
"enum": ["topic", "direct", "fanout", "default", "headers"]
},
"durable": {
"type": "boolean"
},
"autoDelete": {
"type": "boolean"
},
"vhost": {
"type": "string",
"default": "/"
}
}
},
"queue": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"durable": {
"type": "boolean"
},
"exclusive": {
"type": "boolean"
},
"autoDelete": {
"type": "boolean"
},
"vhost": {
"type": "string",
"default": "/"
}
}
},
"bindingVersion": {
"type": "string",
"default": "latest"
}

}
}
19 changes: 19 additions & 0 deletions amqp/schema_message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Message Schema",
"type": "object",
"properties": {
"contentEncoding": {
"type": "string"
},
"messageType": {
"type": "string",
"default": "latest"
},
"bindingVersion": {
"type": "string",
"default": "latest"
}

}
}
50 changes: 50 additions & 0 deletions amqp/schema_operation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Operation Schema",
"type": "object",
"properties": {
"expiration": {
"type": "integer",
"minimum": 0
},
"userId": {
"type": "string"
},
"cc": {
"type": "array",
"items": {
"type": "string"
}
},
"priority": {
"type": "integer"
},
"deliveryMode": {
"type": "integer",
"enum": [1,2]
},
"mandatory": {
"type": "boolean"
},
"bcc": {
"type": "array",
"items": {
"type": "string"
}
},
"replyTo": {
"type": "string"
},
"timestamp": {
"type": "boolean"
},
"ack": {
"type": "boolean"
},
"bindingVersion": {
"type": "string",
"default": "latest"
}

}
}