-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: parameter conversion for v3 (#190)
- Loading branch information
1 parent
b5afb03
commit 35f3dca
Showing
7 changed files
with
149 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
asyncapi: 2.6.0 | ||
channels: | ||
'{enum}/{default}/{description}/{examples}/{location}/{mixed}': | ||
publish: | ||
operationId: lightMeasured | ||
message: | ||
payload: | ||
type: string | ||
parameters: | ||
enum: | ||
$ref: '#/components/parameters/enum' | ||
default: | ||
$ref: '#/components/parameters/default' | ||
description: | ||
$ref: '#/components/parameters/description' | ||
examples: | ||
$ref: '#/components/parameters/examples' | ||
location: | ||
$ref: '#/components/parameters/location' | ||
mixed: | ||
$ref: '#/components/parameters/mixed' | ||
components: | ||
parameters: | ||
enum: | ||
schema: | ||
type: string | ||
enum: ["test"] | ||
default: | ||
schema: | ||
type: string | ||
default: "test" | ||
description: | ||
description: Just a test description | ||
schema: | ||
description: Just a test description 2 | ||
type: string | ||
examples: | ||
schema: | ||
type: string | ||
examples: ["test"] | ||
location: | ||
location: "$message.payload" | ||
schema: | ||
type: string | ||
mixed: | ||
location: "$message.payload" | ||
description: Just a test description | ||
schema: | ||
type: string | ||
enum: ["test"] | ||
default: "test" | ||
description: Just a test description 2 | ||
examples: ["test"] | ||
x-custom-extension: "test" |
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
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,40 @@ | ||
asyncapi: 3.0.0 | ||
channels: | ||
'{enum}/{default}/{description}/{examples}/{location}/{mixed}': | ||
address: '{enum}/{default}/{description}/{examples}/{location}/{mixed}' | ||
messages: | ||
lightMeasured.message: | ||
payload: | ||
type: string | ||
parameters: | ||
enum: | ||
$ref: '#/components/parameters/enum' | ||
default: | ||
$ref: '#/components/parameters/default' | ||
description: | ||
$ref: '#/components/parameters/description' | ||
examples: | ||
$ref: '#/components/parameters/examples' | ||
location: | ||
$ref: '#/components/parameters/location' | ||
mixed: | ||
$ref: '#/components/parameters/mixed' | ||
components: | ||
parameters: | ||
enum: | ||
enum: ["test"] | ||
default: | ||
default: "test" | ||
description: | ||
description: Just a test description | ||
examples: | ||
examples: ["test"] | ||
location: | ||
location: "$message.payload" | ||
mixed: | ||
enum: ["test"] | ||
default: "test" | ||
description: Just a test description | ||
examples: ["test"] | ||
location: "$message.payload" | ||
x-custom-extension: "test" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,5 +256,3 @@ components: | |
parameters: | ||
streetlightId: | ||
description: The ID of the streetlight. | ||
schema: | ||
type: string |