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: add linkedin extension support #528

Merged
merged 9 commits into from
Apr 25, 2024
3 changes: 3 additions & 0 deletions definitions/3.0.0/infoExtensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"properties": {
"x-x":{
"$ref": "http://asyncapi.com/extensions/x/0.1.0/schema.json"
},
"x-linkedin":{
"$ref": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
11 changes: 11 additions & 0 deletions extensions/linkedin/0.1.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "string",
derberg marked this conversation as resolved.
Show resolved Hide resolved
"pattern": "^http(s)?://(www\\.)?linkedin\\.com.*$",
"description": "This extension allows you to provide the Linkedin profile URL of the account representing the team/company of the API.",
"example": [
"https://www.linkedin.com/company/asyncapi/",
"https://www.linkedin.com/in/sambhavgupta0705/"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json"
}
12 changes: 12 additions & 0 deletions schemas/3.0.0-without-$id.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@
"properties": {
"x-x": {
"$ref": "#/definitions/extensions-x-0.1.0-schema"
},
"x-linkedin": {
"$ref": "#/definitions/extensions-linkedin-0.1.0-schema"
}
}
},
Expand All @@ -316,6 +319,15 @@
"AsyncAPISpec"
]
},
"extensions-linkedin-0.1.0-schema": {
"type": "string",
"pattern": "^https://(www\\.)?linkedin\\.com.*$",
"description": "This extension allows you to provide the Linkedin profile URL of the account representing the team/company of the API.",
"example": [
"https://www.linkedin.com/company/asyncapi/",
"https://www.linkedin.com/in/sambhavgupta0705/"
]
},
"servers": {
"description": "An object representing multiple servers.",
"type": "object",
Expand Down
13 changes: 13 additions & 0 deletions schemas/3.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@
"properties": {
"x-x": {
"$ref": "http://asyncapi.com/extensions/x/0.1.0/schema.json"
},
"x-linkedin": {
"$ref": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json"
}
}
},
Expand All @@ -327,6 +330,16 @@
"AsyncAPISpec"
]
},
"http://asyncapi.com/extensions/linkedin/0.1.0/schema.json": {
"$id": "http://asyncapi.com/extensions/linkedin/0.1.0/schema.json",
"type": "string",
"pattern": "^https://(www\\.)?linkedin\\.com.*$",
"description": "This extension allows you to provide the Linkedin profile URL of the account representing the team/company of the API.",
"example": [
"https://www.linkedin.com/company/asyncapi/",
"https://www.linkedin.com/in/sambhavgupta0705/"
]
},
"http://asyncapi.com/definitions/3.0.0/servers.json": {
"$id": "http://asyncapi.com/definitions/3.0.0/servers.json",
"description": "An object representing multiple servers.",
Expand Down
Loading