Skip to content

Commit 1b0ff36

Browse files
committed
Prepare
1 parent f3d6d26 commit 1b0ff36

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,17 @@ respective service operation handler.
10301030
The operation parameter structure can be either modelled according to the Cloud Event specification using the attributes as parameter names or
10311031
mapped via annotations like `@websocket.cloudevent.<annotation>` or `@ws.cloudevent.<annotation>` to a Cloud Event compatible structure.
10321032
1033+
The following annotations are respected:
1034+
1035+
- **Operation level**:
1036+
- `@websocket.cloudevent.<attribute>: <value>`
1037+
- Type: `any` (according to Cloud Event JSON format)
1038+
- Provide static cloud event attribute value, according to cloud event specification
1039+
- **Operation parameter level**:
1040+
- `@websocket.cloudevent.<attribute>`
1041+
- Type: `Boolean`
1042+
- Value from operation parameter for the annotated element is used as dynamic cloud event attribute value, according to cloud event attribute specification
1043+
10331044
**Examples:**
10341045
10351046
**Model Operation Parameters:**
@@ -1061,17 +1072,6 @@ action sendCloudEventMap(
10611072
) returns Boolean;
10621073
```
10631074
1064-
The following annotations are respected:
1065-
1066-
- **Operation level**:
1067-
- `@websocket.cloudevent.<attribute>: <value>`
1068-
- Type: `any` (according to Cloud Event JSON format)
1069-
- Provide static cloud event attribute value, according to cloud event specification
1070-
- **Operation parameter level**:
1071-
- `@websocket.cloudevent.<attribute>`
1072-
- Type: `Boolean`
1073-
- Value from operation parameter for the annotated element is used as dynamic cloud event attribute value, according to cloud event attribute specification
1074-
10751075
Unmapped operation parameters are consumed as cloud event data section and can be skipped for cloud event data section
10761076
via `@ws.ignore`, if not necessary.
10771077

0 commit comments

Comments
 (0)