Skip to content

Commit

Permalink
add test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jul 24, 2023
1 parent 27f1cdb commit c6e164b
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
54 changes: 54 additions & 0 deletions test/input/2.6.0/for-3.0.0-with-mixed-parameters.yml
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"
40 changes: 40 additions & 0 deletions test/output/3.0.0/from-2.6.0-with-mixed-parameters.yml
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"

0 comments on commit c6e164b

Please sign in to comment.