-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a constructor that accepts AaiMessage to ChangeHeadersRefCom…
…mand_Aai20 to fix change of message headers ref in apicurio (#803) * fix: add a constructor that accepts AaiMessage to ChangeHeadersRefCommand_Aai20 to avoid "invalid overload error" in apicurio-studio (see studio issue #2737) * test: add test case for command ChangeHeadersRefCommand_Aai20 with _messagePath parameter --------- Co-authored-by: Benjamin Ledentec <benjamin.ledentec@partnre.com>
- Loading branch information
Showing
9 changed files
with
120 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid-msg.after.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"asyncapi": "2.0.0", | ||
"info": { | ||
"title": "Blank API", | ||
"version": "1.0.0" | ||
}, | ||
"channels": { | ||
"myChannel": { | ||
"description": "This is myChannel description", | ||
"subscribe": { | ||
"message":{ | ||
"payload": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...res/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid-msg.before.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"asyncapi": "2.0.0", | ||
"info": { | ||
"title": "Blank API", | ||
"version": "1.0.0" | ||
}, | ||
"channels": { | ||
"myChannel": { | ||
"description": "This is myChannel description", | ||
"subscribe": { | ||
"message":{ | ||
"payload": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...s/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-invalid-msg.commands.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[{ | ||
"__type": "ChangeHeadersRefCommand_Aai20", | ||
"_headersRef": "NotAReference", | ||
"_messagePath": "/channels[myChannel]/subscribe/message" | ||
}] |
20 changes: 20 additions & 0 deletions
20
...ces/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-msg.after.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"asyncapi": "2.0.0", | ||
"info": { | ||
"title": "Blank API", | ||
"version": "1.0.0" | ||
}, | ||
"channels": { | ||
"myChannel": { | ||
"description": "This is myChannel description", | ||
"subscribe": { | ||
"message":{ | ||
"payload": {}, | ||
"headers": { | ||
"$ref": "#/components/schema/UserSignedUpHeaders" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...es/fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-msg.before.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"asyncapi": "2.0.0", | ||
"info": { | ||
"title": "Blank API", | ||
"version": "1.0.0" | ||
}, | ||
"channels": { | ||
"myChannel": { | ||
"description": "This is myChannel description", | ||
"subscribe": { | ||
"message":{ | ||
"payload": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
.../fixtures/cmd/commands/change-headers-ref/asyncapi-2/change-headers-ref-msg.commands.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[{ | ||
"__type": "ChangeHeadersRefCommand_Aai20", | ||
"_headersRef": "#/components/schema/UserSignedUpHeaders", | ||
"_messagePath": "/channels[myChannel]/subscribe/message" | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters