Skip to content

Commit 8bf62c4

Browse files
feat: add linkedin extension support (#528)
1 parent 33dc8af commit 8bf62c4

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

definitions/3.0.0/infoExtensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"properties": {
55
"x-x":{
66
"$ref": "http://asyncapi.com/extensions/x/0.1.0/schema.json"
7+
},
8+
"x-linkedin":{
9+
"$ref": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json"
710
}
811
},
912
"$schema": "http://json-schema.org/draft-07/schema#",

extensions/linkedin/0.1.0/schema.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"type": "string",
3+
"pattern": "^http(s)?://(www\\.)?linkedin\\.com.*$",
4+
"description": "This extension allows you to provide the Linkedin profile URL of the account representing the team/company of the API.",
5+
"example": [
6+
"https://www.linkedin.com/company/asyncapi/",
7+
"https://www.linkedin.com/in/sambhavgupta0705/"
8+
],
9+
"$schema": "http://json-schema.org/draft-07/schema#",
10+
"$id": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json"
11+
}

schemas/3.0.0-without-$id.json

+12
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@
305305
"properties": {
306306
"x-x": {
307307
"$ref": "#/definitions/extensions-x-0.1.0-schema"
308+
},
309+
"x-linkedin": {
310+
"$ref": "#/definitions/extensions-linkedin-0.1.0-schema"
308311
}
309312
}
310313
},
@@ -316,6 +319,15 @@
316319
"AsyncAPISpec"
317320
]
318321
},
322+
"extensions-linkedin-0.1.0-schema": {
323+
"type": "string",
324+
"pattern": "^https://(www\\.)?linkedin\\.com.*$",
325+
"description": "This extension allows you to provide the Linkedin profile URL of the account representing the team/company of the API.",
326+
"example": [
327+
"https://www.linkedin.com/company/asyncapi/",
328+
"https://www.linkedin.com/in/sambhavgupta0705/"
329+
]
330+
},
319331
"servers": {
320332
"description": "An object representing multiple servers.",
321333
"type": "object",

schemas/3.0.0.json

+13
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@
315315
"properties": {
316316
"x-x": {
317317
"$ref": "http://asyncapi.com/extensions/x/0.1.0/schema.json"
318+
},
319+
"x-linkedin": {
320+
"$ref": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json"
318321
}
319322
}
320323
},
@@ -327,6 +330,16 @@
327330
"AsyncAPISpec"
328331
]
329332
},
333+
"http://asyncapi.com/extensions/linkedin/0.1.0/schema.json": {
334+
"$id": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json",
335+
"type": "string",
336+
"pattern": "^https://(www\\.)?linkedin\\.com.*$",
337+
"description": "This extension allows you to provide the Linkedin profile URL of the account representing the team/company of the API.",
338+
"example": [
339+
"https://www.linkedin.com/company/asyncapi/",
340+
"https://www.linkedin.com/in/sambhavgupta0705/"
341+
]
342+
},
330343
"http://asyncapi.com/definitions/3.0.0/servers.json": {
331344
"$id": "http://asyncapi.com/definitions/3.0.0/servers.json",
332345
"description": "An object representing multiple servers.",

0 commit comments

Comments
 (0)