-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathschema.json
86 lines (86 loc) · 3.11 KB
/
schema.json
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
{
"title": "AsyncAPI specification extensions schema.",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"id",
"type",
"title",
"version"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "A unique id for the extension"
},
"type": {
"type": "string",
"description": "Type of extension. Either bindings or generic.",
"enum": [
"bindings",
"generic"
]
},
"title": {
"type": "string",
"description": "A nice human-readable name for your extension."
},
"description": {
"type": "string",
"description": "A nice human-readable description for your extension."
},
"version": {
"type": "string",
"description": "The version of your extension."
},
"author": {
"type": "string",
"description": "The extension author information. Supports the `Name <email> (website)` format."
},
"contributors": {
"type": "array",
"description": "A list of extension contributors.",
"items": {
"type": "string",
"description": "An extension contributor information. Supports the `Name <email> (website)` format."
}
},
"definitions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"hooks": {
"type": "array",
"description": "An array of A JMESPath queries indicating where it's possible to apply the extension in the AsyncAPI document.",
"items": {
"type": "string",
"description": "A JMESPath query indicating where it's possible to apply the extension in the AsyncAPI document."
}
},
"schema": {
"description": "The JSON Schema Draft 07 schema that validates the extension content.",
"$ref": "http://json-schema.org/draft-07/schema#"
},
"examples": {
"type": "array",
"description": "An array of usage examples.",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"description": {
"type": "string",
"description": "A human-readable description of the example."
},
"example": {}
}
}
}
}
}
}
}
}