Skip to content

Commit

Permalink
feat: release for version 2.5.0 of the spec (#627)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio Moya <[email protected]>
Co-authored-by: asyncapi-bot <[email protected]>
Co-authored-by: derberg <[email protected]>
  • Loading branch information
4 people authored Sep 29, 2022
1 parent 6aba2c7 commit 2b46539
Show file tree
Hide file tree
Showing 11 changed files with 22,059 additions and 11,006 deletions.
4,763 changes: 2,404 additions & 2,359 deletions API.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/asyncapiSchemaFormatParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getMimeTypes() {
'application/schema+json;version=draft-07',
'application/schema+yaml;version=draft-07',
];
['2.0.0', '2.1.0', '2.2.0', '2.3.0', '2.4.0'].forEach(version => {
['2.0.0', '2.1.0', '2.2.0', '2.3.0', '2.4.0', '2.5.0'].forEach(version => {
mimeTypes.push(
`application/vnd.aai.asyncapi;version=${version}`,
`application/vnd.aai.asyncapi+json;version=${version}`,
Expand Down
1 change: 1 addition & 0 deletions lib/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Operation extends OperationTraitable {
*/
hasMultipleMessages() {
if (this._json.message && this._json.message.oneOf && this._json.message.oneOf.length > 1) return true;
// eslint-disable-next-line sonarjs/prefer-single-boolean-return
if (!this._json.message) return false;
return false;
}
Expand Down
4 changes: 3 additions & 1 deletion lib/models/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ServerSecurityRequirement = require('./server-security-requirement');
const MixinDescription = require('../mixins/description');
const MixinBindings = require('../mixins/bindings');
const MixinSpecificationExtensions = require('../mixins/specification-extensions');
const MixinTags = require('../mixins/tags');

/**
* Implements functions to deal with a Server object.
Expand All @@ -16,6 +17,7 @@ const MixinSpecificationExtensions = require('../mixins/specification-extensions
* @mixes MixinDescription
* @mixes MixinBindings
* @mixes MixinSpecificationExtensions
* @mixes MixinTags
* @returns {Server}
*/
class Server extends Base {
Expand Down Expand Up @@ -71,4 +73,4 @@ class Server extends Base {
}
}

module.exports = mix(Server, MixinDescription, MixinBindings, MixinSpecificationExtensions);
module.exports = mix(Server, MixinDescription, MixinBindings, MixinSpecificationExtensions, MixinTags);
Loading

0 comments on commit 2b46539

Please sign in to comment.