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

fix: incorrect operation messages in 'examples/http-test/asyncapi.yaml' #805

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/http-test/asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ operations:
channel:
$ref: "#/channels/TRIGGER"
messages:
- $ref: "#/components/messages/string"
- $ref: "#/channels/TRIGGER/messages/string"
receiveTrigger:
reply:
channel:
$ref: "#/channels/TRIGGER"
messages:
- $ref: "#/components/messages/string"
- $ref: "#/channels/TRIGGER/messages/string"
channel:
$ref: '#/channels/TRIGGER'
action: receive
Expand Down
181 changes: 181 additions & 0 deletions examples/http-test/docs/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,184 @@ This app is a test app. it will send requests to httpbin.org to see if glee work

## Operations

### SEND `/` Operation

* Operation ID: `sendTrigger`
* Available only on servers: [local-trigger](#local-trigger-server)

#### Message `string`

##### Payload

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | string | - | - | - | - |

> Examples of payload _(generated)_

```json
"string"
```


#### `http` Message specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| headers | object | - | - | - | **additional properties are allowed** |
| headers.a | string | - | - | - | **required** |
| headers.b | string | - | - | - | **required** |


### REPLY `/` Operation

* Operation ID: `receiveTrigger`
* Available only on servers: [local-trigger](#local-trigger-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"POST"` | - | - |

Request contains **one of** the following messages:

#### Message `string`

##### Payload

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | string | - | - | - | - |

> Examples of payload _(generated)_

```json
"string"
```


#### `http` Message specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| headers | object | - | - | - | **additional properties are allowed** |
| headers.a | string | - | - | - | **required** |
| headers.b | string | - | - | - | **required** |

#### Message `empty`

##### Payload

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| (root) | null | - | - | - | - |

> Examples of payload _(generated)_

```json
""
```


#### Response information

* should be done to channel: `/`


### SEND `/delete` Operation

* Operation ID: `sendDELETE`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"DELETE"` | - | - |


### RECEIVE `/delete` Operation

* Operation ID: `receiveDELETE`
* Available only on servers: [httpbin.org](#httpbinorg-server)


### SEND `/get` Operation

* Operation ID: `sendGET`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"GET"` | - | - |


### RECEIVE `/get` Operation

* Operation ID: `receiveGET`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"GET"` | - | - |


### SEND `/post` Operation

* Operation ID: `sendPOST`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"POST"` | - | - |


### RECEIVE `/post` Operation

* Operation ID: `receivePOST`
* Available only on servers: [httpbin.org](#httpbinorg-server)


### SEND `/patch` Operation

* Operation ID: `sendPATCH`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"PATCH"` | - | - |


### RECEIVE `/patch` Operation

* Operation ID: `receivePATCH`
* Available only on servers: [httpbin.org](#httpbinorg-server)


### SEND `/put` Operation

* Operation ID: `sendPUT`
* Available only on servers: [httpbin.org](#httpbinorg-server)

#### `http` Operation specific information

| Name | Type | Description | Value | Constraints | Notes |
|---|---|---|---|---|---|
| method | - | - | `"PUT"` | - | - |


### RECEIVE `/put` Operation

* Operation ID: `receivePUT`
* Available only on servers: [httpbin.org](#httpbinorg-server)