Skip to content
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
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run audit
run: yarn audit

Expand All @@ -16,10 +16,13 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [22.x, 24.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The resulting `openapiSpecification` will be a [swagger tools](https://swagger.i

## System requirements

- Node.js 12.x or higher
- Node.js 20.x or higher

You are viewing `swagger-jsdoc` v6 which is published in CommonJS module system.

Expand Down
12 changes: 6 additions & 6 deletions examples/eventDriven/src/customSpec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"asyncapi": "2.0.0",
"components": {
"messages": {
"UserSignedIn": {
"UserSignedUp": {
"payload": {
"type": "object",
"properties": {
Expand All @@ -18,7 +18,7 @@
}
}
},
"UserSignedUp": {
"UserSignedIn": {
"payload": {
"type": "object",
"properties": {
Expand All @@ -32,17 +32,17 @@
}
},
"channels": {
"user/signedin": {
"user/signedup": {
"subscribe": {
"message": {
"$ref": "#/components/messages/UserSignedIn"
"$ref": "#/components/messages/UserSignedUp"
}
}
},
"user/signedup": {
"user/signedin": {
"subscribe": {
"message": {
"$ref": "#/components/messages/UserSignedUp"
"$ref": "#/components/messages/UserSignedIn"
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions examples/eventDriven/src/customSpec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ info:
asyncapi: 2.0.0
components:
messages:
UserSignedIn:
UserSignedUp:
payload:
type: object
properties:
id:
type: string
description: Id of the user
UserSignedUp:
UserSignedIn:
payload:
type: object
properties:
id:
type: string
description: Id of the user
channels:
user/signedin:
subscribe:
message:
$ref: "#/components/messages/UserSignedIn"
user/signedup:
subscribe:
message:
$ref: "#/components/messages/UserSignedUp"
user/signedin:
subscribe:
message:
$ref: "#/components/messages/UserSignedIn"
tags: []
Loading