Skip to content

Commit

Permalink
feat: add title, summary and description fields to the core models (#315
Browse files Browse the repository at this point in the history
)
  • Loading branch information
magicmatatjahu authored Feb 7, 2023
1 parent b87f2d3 commit 4104cab
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
10 changes: 9 additions & 1 deletion definitions/3.0.0/channel.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json"
}
},
"title": {
"type": "string",
"description": "A human-friendly title for the channel."
},
"summary": {
"type": "string",
"description": "A brief summary of the channel."
},
"description": {
"type": "string",
"description": "A description of the channel."
"description": "A longer description of the channel. CommonMark is allowed."
},
"servers": {
"type": "array",
Expand Down
10 changes: 8 additions & 2 deletions definitions/3.0.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,17 @@
]
}
},
"title": {
"type": "string",
"description": "A human-friendly title for the operation."
},
"summary": {
"type": "string"
"type": "string",
"description": "A brief summary of the operation."
},
"description": {
"type": "string"
"type": "string",
"description": "A longer description of the operation. CommonMark is allowed."
},
"security": {
"type": "array",
Expand Down
3 changes: 3 additions & 0 deletions definitions/3.0.0/operationTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"channel": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/channel"
},
"title": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/title"
},
"summary": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/summary"
},
Expand Down
11 changes: 10 additions & 1 deletion definitions/3.0.0/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@
"url": {
"type": "string"
},
"title": {
"type": "string",
"description": "A human-friendly title for the server."
},
"summary": {
"type": "string",
"description": "A brief summary of the server."
},
"description": {
"type": "string"
"type": "string",
"description": "A longer description of the server. CommonMark is allowed."
},
"protocol": {
"type": "string",
Expand Down

0 comments on commit 4104cab

Please sign in to comment.