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: release for version 2.5.0 of the spec #627

Merged
merged 7 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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